Path: 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- (a032) Message-ID: <8905102117.AA18099@riunite.aca.mcc.com> Date: 10 May 89 21:17:21 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 29 The following program causes g++ 1.35.0- to issue invalid error messages (shown below). ------------------------------------------------------------------ // Check that enum types can be declared within structs. // // Bug found by Wayne Allen 4/10/89 in g++ 1.34.1.1 struct s { int member; enum color { red, orange, yellow }; color c; }; int main () { return 0; } ------------------------------------------------------------------ g++-new-new -g -Wall -Wwrite-strings -v -S a032.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 a032.C /tmp/cca18087.cpp GNU CPP version 1.35.0-.0 /usr/local/src/lib/sun3/g++-1.35.0-.0/gcc-cc1plus /tmp/cca18087.cpp -quiet -dumpbase a032.C -Wall -Wwrite-strings -noreg -version -G -o a032.s GNU C++ version 1.35.0-.0 (68k, MIT syntax) compiled by GNU C version 1.35. a032.C:8: duplicate enum value `red' a032.C:8: duplicate enum value `orange' a032.C:8: duplicate enum value `yellow'