This is the mail archive of the gcc-bugs@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: [Bug c/14374] New: valid unamed struct in a union rejected bygcc


On Mon, 1 Mar 2004, ahs3 at fc dot hp dot com wrote:

> typedef union {
>    struct a;
>    struct b;
> } MD;


I don't see how you get this to match the syntax for union declarations
(6.7.2.1) at all.  A member name can only be omitted for bit-fields; the 
syntax simply doesn't allow it otherwise.

-- 
Joseph S. Myers
jsm@polyomino.org.uk


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