Thread View: gnu.g++.bug
1 messages
1 total messages
Started by "Douglas C. Schmidt"
Fri, 14 Oct 1988 19:13
Small program gets segmentation fault on Sparc
Author: "Douglas C. Schmidt"
Date: Fri, 14 Oct 1988 19:13
Date: Fri, 14 Oct 1988 19:13
28 lines
1241 bytes
1241 bytes
Hi,
The following small g++ program gets a fatal signal on the Sun 4
with g++ 1.27:
----------------------------------------
main () {
int i = 1;
i = i ? : 0;
}
----------------------------------------
Here's the diagnostic:
----------------------------------------
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/cca01692.cpp
GNU CPP version 1.27.0
/usr/public/lib/g++/gcc-c++ /tmp/cca01692.cpp -quiet -dumpbase test.c -fchar-charconst -version -o /tmp/cca01692.s
test.c:3: Segmentation violation
/usr/public/g++: Program c++ got fatal signal 11.
----------------------------------------
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