I have a very simple piece of code that will produce the following error: -- test.C:5: internal compiler error: in output_constant, at varasm.c:4031 --
A simple code fragment to reproduce this bug is: -- struct foo { public: virtual int bar(int); }; void (foo::*__Virtual__foo__Var1)() = (void (foo::*)())(&foo::bar); -- I've observed this bug on both ppc and x86 platforms with various builds of the 4.1.x and 4.0.x trees. Note that 3.x _will_ compile this correctly. thanks Donour Sizemore -- Summary: Internal error in varasm.c Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: donour at cs dot unm dot edu GCC build triplet: i686-linux-gnu GCC host triplet: i686-linux-gnu GCC target triplet: i686-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28148