🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1501

Small program gets segmentation fault on Sparc

#1501
From: "Douglas C. Schmidt"
Date: Fri, 14 Oct 1988 19:13
28 lines
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
Technical Details
Message-ID: <8810141213.aa28044@PARIS.ICS.UCI.EDU>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!ORION.CF.UCI.EDU!schmidt%blanche.ics.uci.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!ORION.CF.UCI.EDU!schmidt%blanche.ics.uci.edu
From: schmidt%blanche.ics.uci.edu@ORION.CF.UCI.EDU ("Douglas C. Schmidt")
Newsgroups: gnu.g++.bug
Subject: Small program gets segmentation fault on Sparc
Message-ID: <8810141213.aa28044@PARIS.ICS.UCI.EDU>
Date: 14 Oct 88 19:13:44 GMT
Sender: bob@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 28