re PR c++/15938 (ICE with anonymous unions)

PR c++/15938
	* g++.dg/init/union2.C: New test.

From-SVN: r102235
This commit is contained in:
Volker Reichelt
2005-07-21 14:50:46 +00:00
committed by Volker Reichelt
parent f339fc8e61
commit b8bcbe3ae8
2 changed files with 18 additions and 0 deletions
+5
View File
@@ -1,3 +1,8 @@
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
+13
View File
@@ -0,0 +1,13 @@
// 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" }