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: "ahs3 at fc dot hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Mar 2004 22:56:04 -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 ahs3 at fc dot hp dot com 2004-03-01 22:56 -------
Yes, I see that this is a warning and not an error report. I also understand
what -pedantic is reporting. However, should there be any warning at all? In
the first place, this is new behavior in 3.3.3. In the second place, according
to the C standard, this looks to be valid code (see section 6.5.2, paragraph
20). If it _is_ valid code, then -pedantic is wrong.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14374