[gnu.g++.bug] Small program gets segmentation fault on Sparc

schmidt%blanche.ics.uci.edu@ORION.CF.UCI.EDU ("Douglas C. Schmidt") (10/15/88)

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