Thread View: gnu.g++.bug
1 messages
1 total messages
Started by "Douglas C. Schmidt"
Sun, 01 Jan 1989 20:08
g++ 1.32 gets fatal signal
Author: "Douglas C. Schmidt"
Date: Sun, 01 Jan 1989 20:08
Date: Sun, 01 Jan 1989 20:08
38 lines
1461 bytes
1461 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads