[gnu.gcc.bug] struct bug?

d85-kai@nada.kth.se (Kai-Mikael J{{-Aro) (12/07/89)

I had some strange problems with a program I wrote.  Finally I
isolated the problem to this:
The following program compiles OK:

struct {
	char signed;
	int x;
} foo;

main()
{
	/* foo.signed = 'y';*/
	foo.x = 4711;
}

Now, if I uncomment the first statement in the main program I get the
following error message:

x.c: In function main:
x.c:8: parse error before `signed'

Turns out that "signed" apparently is a reserved word, but gcc does
not notice that I don't declare any identifier in the struct.  Is this
correct behaviour?  I ran GCC 1.36 (pyr).
-- 
Kai-Mikael J{{-Aro	d85-kai@nada.kth.se
"You know how Einstein had bad grades as a kid?  Well, mine are even WORSE!"
	- Calvin