Article View: gnu.g++.bug
Article #1442g++ bug
From: Nikolay Yatsenko
Date: Fri, 29 Jan 1993 03:14
Date: Fri, 29 Jan 1993 03:14
39 lines
1891 bytes
1891 bytes
g++ (gcc 2.3.3, sparc) failed on this file with internal compiler error.
/////////////////// Input file /////////////////////////////////////////
//
struct B {
int b;
virtual int f() {return 0;}
};
struct C {int c;};
struct E : C {};
struct B1 : virtual B {};
struct B2 : virtual B1{};
struct B4 : C, B1 {};
struct D3 : E , B4, B2 { int f() {return 3;} };
int main(void)
{
D3 d; // Internal compiler error 211 here.
return 0;
}
///////////////// end of input file ////////////////////////////////
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/specs
gcc version 2.3.3
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix multbaseb2.C /usr/tmp/cca27108.i
GNU CPP version 2.3.3 (sparc)
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/cc1plus /usr/tmp/cca27108.i -quiet -dumpbase multbaseb2.cc -version -o /usr/tmp/cca27108.s
GNU C++ version 2.3.3 (sparc) compiled by GNU C version 2.3.3.
multbaseb2.C: In function `int main ()':
multbaseb2.C:20: warning: internal consistency check failed, please report, recovering.
multbaseb2.C:20: cannot convert a pointer of type `D3'
multbaseb2.C:20: to a pointer of type `B1'
multbaseb2.C:20: Internal compiler error 211.
multbaseb2.C:20: Please report this to `bug-g++@prep.ai.mit.edu'.
Technical Details
Message-ID:
<199301272139.AA25451@world.std.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!UB.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!world.std.com!kolShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!UB.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!world.std.com!kol From: kol@world.std.com (Nikolay Yatsenko) Newsgroups: gnu.g++.bug Subject: g++ bug Date: 28 Jan 1993 22:14:07 -0500 Organization: Gnus Not Usenet Lines: 40 Sender: daemon@cis.ohio-state.edu Approved: bug-g++@prep.ai.mit.edu Distribution: gnu Message-ID: <199301272139.AA25451@world.std.com>