[Bug c++/51228] New: [4.5/4.6/4.7 Regression] ICE with transparent union
reichelt at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Nov 19 21:13:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51228
Bug #: 51228
Summary: [4.5/4.6/4.7 Regression] ICE with transparent union
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: reichelt@gcc.gnu.org
The following code snippet triggers an ICE since GCC 4.5.0:
==========================================================
typedef union {} U __attribute__((transparent_union));
void foo(U u) {}
==========================================================
bug.cc: In function 'void foo(U)':
bug.cc:3:6: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
More information about the Gcc-bugs
mailing list