Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Tommy Joseph
Tue, 08 Nov 1988 22:58
2-line program that causes g++ to crash.
Author: Tommy Joseph
Date: Tue, 08 Nov 1988 22:58
Date: Tue, 08 Nov 1988 22:58
22 lines
1109 bytes
1109 bytes
Here is a 2-line rather meaningless program that caused g++
to crash. I use a SUN 3/60 running Mach.
main()
{
int c;
void& b = void(c);
}
I put this into a file called try.cc and ran g++ as below:
% g++ -v try.cc
g++ version 1.27.0
/usr/local/lib/gcc-cpp+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -DCMUCS -Dsun
-Dunix try.cc /tmp/cc003075.cpp
GNU CPP version 1.27.0
/usr/local/lib/gcc-c++ /tmp/cc003075.cpp -quiet -dumpbase try.cc -noreg -versio
n -o /tmp/cc003075.s
GNU C++ version 1.27.0 (68k, MIT syntax) compiled by GNU C version 1.27.
try.cc:4: Segmentation violation
g++: Program c++ got fatal signal 11.
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