[Bug c++/12881] New: ICE in make_thunk
grigory at stl dot sarov dot ru
gcc-bugzilla@gcc.gnu.org
Mon Nov 3 05:54:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12881
Summary: ICE in make_thunk
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: grigory at stl dot sarov dot ru
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-redhat-linux
GCC host triplet: i686-redhat-linux
GCC target triplet: i686-redhat-linux
G++ 3.4 (20031029) gives ICE on the the test-case listed below.
This error seems to be a side-effect of the fix for previous covariant return
thunk problems - PR c++/12698, PR c++/12699, PR c++/12700, PR c++/12566.
$ g++ -c foo.cpp
foo.cpp:21: internal compiler error: in make_thunk, at cp/method.c:140
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$ cat foo.cpp
struct c1 {};
struct c3 : virtual c1
{
virtual c1* f6() {};
int i;
};
struct c6 : virtual c3 { };
struct c7 : c3
{
virtual c3* f6() {};
};
struct c24 : virtual c7
{
virtual c6* f6();
};
c6* c24::f6() { return 0; }
struct c31 : c24 {};
More information about the Gcc-bugs
mailing list