[Bug c++/30221] New: internal compiler error: in reshape_init_r, at cp/decl.c:4632
Initializing a struct member that is a union of function pointers with a NULL (0) value causes an internal compiler error: in reshape_init_r, at cp/decl.c:4632. This code compiles and executes correctly with g++ 3.2, 3,3, and 3.4. See attached program code that demonstrates the compile error. No options were used, just 'g++ t.cpp'. -- Summary: internal compiler error: in reshape_init_r, at cp/decl.c:4632 Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mjones at adt-it dot com GCC build triplet: 4.1.1 20061011 (Red Hat 4.1.1-30) GCC host triplet: i386-pc-linux-gnu GCC target triplet: i386-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30221
[Bug c++/30221] internal compiler error: in reshape_init_r, at cp/decl.c:4632
--- Comment #1 from mjones at adt-it dot com 2006-12-15 13:57 --- Created an attachment (id=12812) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12812&action=view) testcase that will reproduce the compiler error -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30221
[Bug c++/30221] internal compiler error: in reshape_init_r, at cp/decl.c:4632
--- Comment #2 from mjones at adt-it dot com 2006-12-15 13:57 --- Created an attachment (id=12813) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12813&action=view) cpp output as requested by the compiler error output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30221