This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
cvs g++ ICE in is_subobject_of_p
- To: gcc-bugs at gcc dot gnu dot org
- Subject: cvs g++ ICE in is_subobject_of_p
- From: scott snyder <snyder at fnal dot gov>
- Date: Thu, 29 Jun 2000 14:11:37 CDT
hi -
With a recent cvs version of gcc (20000629) on an i686-pc-linux platform,
i get an ICE trying to compile the following source:
--------------------------------------------------
struct list
{
typedef int reference;
};
class d0_Collection_Base {};
template <class T>
class d0_List_1
: virtual public d0_Collection_Base,
public list
{
public:
typedef int reference;
};
template <class T>
class d0_List
{
public:
typedef d0_List_1<T> Base;
typedef typename Base::reference reference;
};
--------------------------------------------------
$ ./cc1plus x.cc
x.cc:23: Internal compiler error.
x.cc:23: Please submit a full bug report.
x.cc:23: See <URL:http://www.gnu.org/software/gcc/bugs.html> for
instructions.
Here's where it's crashing:
#0 0x837f1c9 in is_subobject_of_p (parent=0x40127780, binfo=0x0,
most_derived=0x4012a400) at ../../../egcs/gcc/cp/search.c:1241
#1 0x837f4ed in is_subobject_of_p (parent=0x40127780, binfo=0x40127b40,
most_derived=0x4012a400) at ../../../egcs/gcc/cp/search.c:1253
#2 0x837fd76 in lookup_field_r (binfo=0x40127780, data=0xbfffec88)
at ../../../egcs/gcc/cp/search.c:1434
#3 0x8380b8b in bfs_walk (binfo=0x40127780, fn=0x837fa68 <lookup_field_r>,
qfn=0x837f6ec <lookup_field_queue_p>, data=0xbfffec88)
at ../../../egcs/gcc/cp/search.c:1782
#4 0x83801d2 in lookup_member (xbasetype=0x4012a400, name=0x401214c0,
protect=0, want_type=0) at ../../../egcs/gcc/cp/search.c:1550
#5 0x827a163 in lookup_name_real (name=0x401214c0, prefer_type=0, nonclass=0,
namespaces_only=0) at ../../../egcs/gcc/cp/decl.c:5883
#6 0x827a63c in lookup_name (name=0x401214c0, prefer_type=-2)
at ../../../egcs/gcc/cp/decl.c:6015
#7 0x833e492 in yylex () at ../../../egcs/gcc/cp/spew.c:292
#8 0x832a99a in yyparse () at /usr/lib/bison.simple:432
#9 0x804ce2b in compile_file (name=0x401222e8 "x.cc")
at ../../egcs/gcc/toplev.c:2289
#10 0x8052024 in main (argc=2, argv=0xbffff974) at ../../egcs/gcc/toplev.c:4732
thanks,
sss