This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14374] valid unamed struct in a union rejected by gcc
- From: "jsm at polyomino dot org dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Mar 2004 01:04:32 -0000
- Subject: [Bug c/14374] valid unamed struct in a union rejected by gcc
- References: <20040301221504.14374.ahs3@fc.hp.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jsm at polyomino dot org dot uk 2004-03-02 01:04 -------
Subject: Re: New: valid unamed struct in a union rejected by
gcc
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.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14374