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]

[Bug c/14374] valid unamed struct in a union rejected by gcc


------- 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


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