[Bug c/14374] valid unamed struct in a union rejected by gcc
ahs3 at fc dot hp dot com
gcc-bugzilla@gcc.gnu.org
Mon Mar 1 22:56:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list