This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Unnamed UNION and STRUCT members
- To: egcs at cygnus dot com
- Subject: Re: Unnamed UNION and STRUCT members
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Date: Sat, 21 Nov 1998 03:43:02 +1100
- Reply-To: fjh at cs dot mu dot oz dot au
"Pavel Pisa" wrote:
> [unnamed union in struct example]
> It seems to be M$ extension to C to allow unnamed members
> in structs and unions and members of these unnamed members
> can be accessed by its name in name space of containing structure
> or union.
I don't think this is a Microsoft innovation. I believe this extension
was first supported in the Plan 9 C compiler.
This was proposed as an extension for C9X. It may have been rejected,
though -- I don't know the current status of that proposal.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp.