Anonymous Unions

Jonathan Larmour
Tue Dec 1 06:05:00 GMT 1998

Stan Katz wrote:
> Does gcc support the concept of anonymous unions.

IIRC, anonymous unions are not in the C standard, and are not planned for
the C9X standard. Therefore gcc is doing the right thing and not allowing it
in standard C code.

However gcc/g++ does allow it for C++ code, because it _is_ in the C++

Cygnus Solutions, 35 Cambridge Place, Cambridge, UK.  Tel: +44 (1223) 728762
"Women marry hoping their husbands will change, men||Home e-mail: jifl @ 
marry hoping their wives never do. Both are rare." ||
Help fight spam!  These opinions are all my own fault
New CrossGCC FAQ:
To remove yourself from the crossgcc list, send
mail to with the
text 'unsubscribe' (without the quotes) in the
body of the message.

More information about the crossgcc mailing list