Path: utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!CUNYVM.CUNY.EDU!chatty%FRLRI61.BITNET From: chatty%FRLRI61.BITNET@CUNYVM.CUNY.EDU Newsgroups: gnu.g++.bug Subject: Failed assertion Message-ID: <8912081624.AA08093@lri.lri.fr> Date: 8 Dec 89 16:24:33 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 40 // The following code causes a failed assertion on sun3os4. // It is g++ 1.26.2- with all (?) the patches posted Dec 5 class A { public: int s; }; class B : public A { }; class C : public B { }; int foo () { C c; return c.s; } // g++ -v -c a.cc // g++ version 1.36.2- (based on GCC 1.36) // /usr/local/lib/GNU/cpp -+ -v -undef -D__GNUC__ -D__GNUG__ -D__cplusplus -Dmc // -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 a. // /usr/tmp/cca04511.cpp // GNU CPP version 1.36 // /usr/local/lib/GNU/cc1plus /usr/tmp/cca04511.cpp -quiet -dumpbase a.cc -vers // -o /usr/tmp/cca04511.s // GNU C++ version 1.36.2- (based on GCC 1.36) (68k, MIT syntax) compiled by GNU // version 1.36. // default target switches: -m68020 -mc68020 -m68881 -mbitfield // Failed assertion assoc != NULL_TREE at line 1282 of `cplus-typeck.c'. // Stephane Chatty chatty@lri.lri.fr // chatty@frlri61.bitnet