egcs-1.1b BUG ? typeof() not working inside union or struct without tag
Jeffrey A Law
law@cygnus.com
Sat Oct 31 01:24:00 GMT 1998
In message < 3633BBB3.6D14C03D@t-online.de >you write:
> well i hope this isn't an FAQ, i skimmed through the lists and didn't
> find anything on this topic.
>
> Trying to compile KDE-1.0 with a self built egcs-1.1b on a Linux system
> with libc.so.5.4.46 (SusE5.3) failed when sys/wait.h was included.
> Tracking down the error a little bit, i found that obvoiusly typeof()
> doesn't work inside a struct or union declaration that doesn't have a
> tag.
>
> e.g., the following does not compile:
>
> int main(int argc, char *argv[])
> {
> int y;
> union {
> typeof (y) a;
> int b;
> } a;
> }
This has been fixed for the upcoming egcs-1.1.1 release
jeff
More information about the Gcc-bugs
mailing list