This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29018] empty enum accepted
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Sep 2007 17:53:12 -0000
- Subject: [Bug c++/29018] empty enum accepted
- References: <bug-29018-5394@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from pcarlini at suse dot de 2007-09-04 17:53 -------
Humm, no, anonymous enums are clearly legal, sorry about the stupid mistake.
Still, it's not completely clear to me the discussion in 7.2/5 of empty
enumerator-lists, evidently, we must assume those are illegal *only* when the
enum is simultaneously anonymous (and the patch in Comment #2 is therefore
incomplete, not completely wrong, sorry about the misunderstanding).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29018