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:
committed by
Volker Reichelt
parent
f339fc8e61
commit
b8bcbe3ae8
@@ -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
|
||||
|
||||
@@ -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" }
|
||||
Reference in New Issue
Block a user