http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49669
Summary: Compiler crashes with "internal compiler error: in
perform_member_init, at cp/init.c:530"
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
Host: x86
Target: x86
Build: x86
Compile this with "g++ -c x.cpp -std=c++0x":
--- BEGIN FILE x.cpp ---
struct Foo { explicit Foo(int) { } };
struct Goo { Goo() : x(Foo(4), Foo(5)) { } Foo x[2]; };
--- END FILE ---
The compiler (GCC 4.6.0) crashes with this message:
x.cpp: In constructor ‘Goo::Goo()’:
x.cpp:2:38: internal compiler error: in perform_member_init, at cp/init.c:530