Article View: gnu.g++.bug
Article #888gnu C++ 222 bug report
From: dcb
Date: Thu, 03 Sep 1992 17:57
Date: Thu, 03 Sep 1992 17:57
50 lines
1624 bytes
1624 bytes
Hello there,
Given the code at the end of this mail message I get the following error from a stock copy
of GNU C++ 2.2.2 on SUN 4 hardware
../gcc-2.2.2/cp-class.c:2378: failed assertion `IDENTIFIER_TEMPLATE (t) != NULL_TREE'
cc1plus: inherit.C:19: internal error - abort.
gcc-2.2.2: Internal compiler error: program cc1plus got fatal signal 6
BTW, any clues on GNU 2.3 delivery schedules or bugs fixed status ?
Regards
David C Binderman Dept US/ESI, Bau 60, SEL-Alcatel AG, Lorenz Strasse 10,
D-7000 Stuttgart 40, Germany dcb@us-es.sel.de +49 711 821 3841
---------------- cut here ------------------------------------------
extern "C" int printf( const char *, ...);
class A {
public :
virtual void f() { printf( "A::f() called\n"); }
virtual void g() { printf( "A::g() called\n"); }
} ;
class B : public A {
typedef A superclass ;
public :
virtual void g() {
printf( "B::g() called\n");
superclass::g() ;
}
} ;
class C : public B {
typedef B superclass ;
public :
virtual void f() {
printf( "C::f() called\n");
superclass::f() ;
}
} ;
int main() {
C c ;
c.f() ;
c.g() ;
return 0 ;
}
---------------- cut here ------------------------------------------
Technical Details
Message-ID:
<9209031357.AA14803@us-es.sel.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!us-es.SEl.DE!dcbShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!us-es.SEl.DE!dcb From: dcb@us-es.SEl.DE Subject: gnu C++ 222 bug report Message-ID: <9209031357.AA14803@us-es.sel.de> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Thu, 3 Sep 1992 17:57:14 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 52