This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28148] New: Internal error in varasm.c
- From: "donour at cs dot unm dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jun 2006 23:12:59 -0000
- Subject: [Bug c++/28148] New: Internal error in varasm.c
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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