🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ron Guilmette Wed, 10 May 1989 21:17
BUG in g++ 1.35.0- (a032)
#1966
Author: Ron Guilmette
Date: Wed, 10 May 1989 21:17
29 lines
1468 bytes
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'
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads