Path: utzoo!utgpu!water!watmath!uunet!tut.cis.ohio-state.edu!ORION.CF.UCI.EDU!schmidt%blanche.ics.uci.edu From: schmidt%blanche.ics.uci.edu@ORION.CF.UCI.EDU ("Douglas C. Schmidt") Newsgroups: gnu.g++.bug Subject: g++ dies on sparc Message-ID: <8810311858.aa10117@PARIS.ICS.UCI.EDU> Date: 1 Nov 88 02:58:55 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 54 Hi, The following code causes a segmentation fault on the sparc, running g++ 1.27 ( this only occurs when stream.h is included ) : ---------------------------------------- #include class Foo { public: virtual int Append () {} virtual int Prepend () {} }; class Bar : public Foo { private: int Append () {} public: }; main () { Bar Foobar; Foobar.Append (); Foobar.Prepend (); } ---------------------------------------- Here are the diagnostics: ---------------------------------------- Script started on Mon Oct 31 18:45:43 1988 [~ ] [/cd/ua/schmidt] [7m[6:45pm][m [crimee] [1]..: g++ -v test.C g++ version 1.27.0 echo use .cc filename extension! use .cc filename extension! /usr/public/lib/g++/gcc-cpp+ -v -I/cd/ua/schmidt/include/ -undef -D__GNU__ -D__GNUG__ -Dsparc -Dsun -Dunix test.C /tmp/cca16498.cpp GNU CPP version 1.27.0 /usr/public/lib/g++/gcc-c++ /tmp/cca16498.cpp -quiet -dumpbase test.C -fchar-charconst -noreg -version -o /tmp/cca16498.s GNU C++ version 1.27.0 (sparc) compiled by GNU C version 1.28. :889264: /usr/public/g++: Program c++ got fatal signal 11. [~ ] [/cd/ua/schmidt] exit script done on Mon Oct 31 18:48:39 1988 ----------------------------------------