This is the mail archive of the gcc@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]
Other format: [Raw text]

RE: Anonymous structs with duplicate members within unions


On Wed, 19 Jan 2005, Dave Korn wrote:

>   What seems to me to be a real bug is that gcc (3.3.3) will accept the
> following variant in C:
> 
> --------------------<snip!>--------------------
> dk@mace /test/derf> cat derf.c
> 
> union uDerf { struct { unsigned char A;
>                        unsigned      B;
>                      };
>               struct { unsigned char D;
>                        long          A;
>                      };
>             };

That would be bug 4784.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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