🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

BUG in g++ 1.35.0- (a033)

#1968
From: Ron Guilmette
Date: Wed, 10 May 1989 21:20
31 lines
1529 bytes
The following program causes g++ 1.35.0- to issue invalid
error messages (shown below).  This bug apparently affects
both clases and structs.

-----------------------------------------------------------------
// Check that enum types can be declared within classes.
//
// Bug found by Wayne Allen 4/10/89 in g++ 1.34.1.1

class s {
public:
	int member;
	enum color { red, orange, yellow };
	color c;
};

int main ()
{
	return 0;
}
-----------------------------------------------------------------
g++-new-new -g -Wall -Wwrite-strings -v -S a033.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 a033.C /tmp/cca18122.cpp
GNU CPP version 1.35.0-.0
 /usr/local/src/lib/sun3/g++-1.35.0-.0/gcc-cc1plus /tmp/cca18122.cpp -quiet -dumpbase a033.C -Wall -Wwrite-strings -noreg -version -G -o a033.s
GNU C++ version 1.35.0-.0 (68k, MIT syntax) compiled by GNU C version 1.35.
a033.C:9: duplicate enum value `red'
a033.C:9: duplicate enum value `orange'
a033.C:9: duplicate enum value `yellow'
Technical Details
Message-ID: <8905102120.AA18149@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- (a033)
Message-ID: <8905102120.AA18149@riunite.aca.mcc.com>
Date: 10 May 89 21:20:35 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 31