unnamed fields of type other than struct or union are not allowed
Luben Tuikov
luben@splentec.com
Sat Oct 26 13:59:00 GMT 2002
I have a similar construct:
struct test {
unsigned char :1;
int i;
int ;
long l;
};
and the compiler complains:
somefile.c:line#: unnamed fields of type other than struct or union are not allowed
This used to work with gcc 3.0.4 and before.
Can someone tell me why the bitfield is ok to be unnamed but
the int cannot be unnamed?
Thanks,
--
Luben
More information about the Gcc-help
mailing list