Anonymous structs with duplicate members within unions
Joseph S. Myers
joseph@codesourcery.com
Thu Jan 20 03:53:00 GMT 2005
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)
More information about the Gcc
mailing list