* g++.dg/init/union2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102235
138bc75d-0d04-0410-961f-
82ee72b054a4
2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+ PR c++/15938
+ * g++.dg/init/union2.C: New test.
+
+2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
PR c/22393
* gcc.dg/complex-4.c: New test.
--- /dev/null
+// PR c++/15938
+// { dg-do compile }
+// { dg-options "" }
+
+typedef union
+{
+ struct { int i; };
+ struct { char c; };
+} A;
+
+A a = { 0 };
+A b = {{ 0 }};
+A c = {{{ 0 }}}; // { dg-error "braces" }