|
From: <dan...@ya...> - 2003-10-16 19:24:27
|
--- Bang Jun-Young <jun...@Ne...> wrote: > Hi,
>
> I just noticed that MSVC style anononymous struct doesn't work with
> MinGW gcc 3.3.1.
>
> main()
> {
> struct foo {
> int a;
> };
>
> struct {
> struct foo; /* warning */
> int b;
> } bar;
>
> bar.a = 1; /* error */
> }
>
> The above program doesn't compile any more. It used to work fine
> with 2.95.x, so I wonder what has been changed since then.
>
gcc -fms-extensions is now needed to allow that silliness.
Danny
> Jun-Young
>
> --
> Bang Jun-Young <jun...@Ne...>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> MinGW-users mailing list
> Min...@li...
>
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.
|