This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-1.1b BUG ? typeof() not working inside union or struct without tag



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]