schmidt%crimee.ics.uci.edu@PARIS.ICS.UCI.EDU ("Douglas C. Schmidt") (01/02/89)
Hi, The following short program crashes g++ 1.32 running on the sparc: ---------------------------------------- #include <stream.h> class X { public: int i; }; main ( int, char *[ ] ) { int X::*pmXi = &X::i; cout << *pmXi; } ---------------------------------------- Here's the diagnostics: ---------------------------------------- g++ version 1.32.0 /usr/public/lib/g++/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dsparc -Dsun -Dunix test.C /tmp/cca06241.cpp GNU CPP version 1.32 /usr/public/lib/g++/gcc-c++ /tmp/cca06241.cpp -quiet -dumpbase test.C -noreg -version -o /tmp/cca06241.s GNU C++ version 1.32.0 (sparc) compiled by GNU C version 1.31. In function main (int, char **): test.C:11: bad argument 0 for function `ostream::operator << (const char *)' (type was struct ostream *) Failed assertion form != MEMBER_TYPE at line 660 of `cplus-convert.c'. /usr/public/g++: Program c++ got fatal signal 6. ---------------------------------------- Doug