🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

BUG in G++ 1.35.0- - SEGFAULT (a034)

#1969
From: Ron Guilmette
Date: Wed, 10 May 1989 21:23
23 lines
1239 bytes
The following program causes g++ 1.35.0- to SEGFAULT.

------------------------------------------------------------------
// Check that enum types can be declared within unions.

union u {
	int member;
	enum color { red, orange, yellow };
	color c;
};

int main ()
{
	return 0;
}
------------------------------------------------------------------
g++-new-new -g -Wall -Wwrite-strings -v -S a034.C
g++ version 1.35.0-.0
 /usr/local/src/lib/sun3/g++-1.35.0-.0/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -Wall -D__HAVE_68881__ -Dmc68020 a034.C /tmp/cca18166.cpp
GNU CPP version 1.35.0-.0
 /usr/local/src/lib/sun3/g++-1.35.0-.0/gcc-cc1plus /tmp/cca18166.cpp -quiet -dumpbase a034.C -Wall -Wwrite-strings -noreg -version -G -o a034.s
g++-new-new: Program cc1plus got fatal signal 11.
Technical Details
Message-ID: <8905102123.AA18195@riunite.aca.mcc.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfg
From: rfg@MCC.COM (Ron Guilmette)
Newsgroups: gnu.g++.bug
Subject: BUG in G++ 1.35.0- - SEGFAULT (a034)
Message-ID: <8905102123.AA18195@riunite.aca.mcc.com>
Date: 10 May 89 21:23:01 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 23