schmidt%blanche.ics.uci.edu@ORION.CF.UCI.EDU ("Douglas C. Schmidt") (11/01/88)
Hi, The following code causes a segmentation fault on the sparc, running g++ 1.27 ( this only occurs when stream.h is included ) : ---------------------------------------- #include <stream.h> 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 ----------------------------------------