This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.1b BUG ? typeof() not working inside union or struct without tag
- To: Elke dot Hadtstein at t-online dot de (Martin Cornelius)
- Subject: Re: egcs-1.1b BUG ? typeof() not working inside union or struct without tag
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sat, 31 Oct 1998 02:24:10 -0700
- cc: egcs-bugs at cygnus dot com
- Reply-To: law at cygnus dot com
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