[Bug c++/51219] New: ICE with structure initializer
reichelt at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Nov 19 00:04:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51219
Bug #: 51219
Summary: ICE with structure initializer
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 valid code snippet triggers an ICE on trunk:
=======================
struct A
{
int i;
int : 8;
};
void foo()
{
A a = { .i = 0 };
}
=======================
bug.cc: In function 'void foo()':
bug.cc:7:6: error: non-trivial conversion at assignment
signed char
int
a.D.1836 = 0;
bug.cc:7:6: internal compiler error: verify_gimple failed
Please submit a full bug report, [etc.]
More information about the Gcc-bugs
mailing list