🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Short program kills g++ on the sparc

#1540
From: "Douglas C. Schmidt"
Date: Sun, 27 Nov 1988 00:11
29 lines
1240 bytes
Hi,

  The following program causes a segmentation fault on the sparc
for g++ 1.27:

----------------------------------------
main()
{
    char *option[] = {"Maximum", "Minimum", "Mean", "Median" };
}
----------------------------------------

Here's the compiler output:

g++ version 1.27.0
 /usr/public/lib/g++/gcc-cpp+ -v -I/cd/ua/schmidt/include/ -undef
-D__GNU__ -D__GNUG__ -Dsparc -Dsun -Dunix -+ foo.c /tmp/cca29819.cpp
GNU CPP version 1.27.0

 /usr/public/lib/g++/gcc-c++ /tmp/cca29819.cpp -quiet -dumpbase foo.c
-finline-functions -fmemoize-lookups -fsave-memoized -fchar-charconst
-version -o /tmp/cca29819.s GNU C++ version 1.27.0 (sparc) compiled by
GNU C version 1.28.

/usr/public/g++: Program c++ got fatal signal 6.
----------------------------------------

Doug
Technical Details
Message-ID: <8811261611.aa22041@PARIS.ICS.UCI.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!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!utgpu!watmath!uunet!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: Short program kills g++ on the sparc
Message-ID: <8811261611.aa22041@PARIS.ICS.UCI.EDU>
Date: 27 Nov 88 00:11:33 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 29