[Bug c++/54216] Missing diagnostic for ill-formed anonymous enum declarations

2013-04-11 Thread paolo.carlini at oracle dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54216



Paolo Carlini paolo.carlini at oracle dot com changed:



   What|Removed |Added



 Status|ASSIGNED|RESOLVED

 CC|jason at gcc dot gnu.org|

 Resolution||FIXED



--- Comment #4 from Paolo Carlini paolo.carlini at oracle dot com 2013-04-11 
09:04:55 UTC ---

Fixed in r197742.


[Bug c++/54216] Missing diagnostic for ill-formed anonymous enum declarations

2013-04-09 Thread paolo.carlini at oracle dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54216



Paolo Carlini paolo.carlini at oracle dot com changed:



   What|Removed |Added



 Status|UNCONFIRMED |ASSIGNED

   Last reconfirmed||2013-04-10

 AssignedTo|unassigned at gcc dot   |paolo.carlini at oracle dot

   |gnu.org |com

   Target Milestone|--- |4.9.0

 Ever Confirmed|0   |1



--- Comment #2 from Paolo Carlini paolo.carlini at oracle dot com 2013-04-10 
00:36:11 UTC ---

Mine.


[Bug c++/54216] Missing diagnostic for ill-formed anonymous enum declarations

2013-04-09 Thread paolo.carlini at oracle dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54216



Paolo Carlini paolo.carlini at oracle dot com changed:



   What|Removed |Added



 CC||jason at gcc dot gnu.org



--- Comment #3 from Paolo Carlini paolo.carlini at oracle dot com 2013-04-10 
00:41:06 UTC ---

Hi Jason. I'm working on this and the patch is trivial but I suspect that quite

a few testcases (in the library too) need adjusting. Thus, before I start to do

that, wanted to ask: is it Ok a pedwarn for the first case:



enum {}; //-std=c++98 or -std=c++11



and an hard error for the other two:



enum class {}; //-std=c++11



enum class { x }; //-std=c++11



? Like:



54216.C:1:6: warning: anonymous enumeration may not be empty [-Wpedantic]

 enum {}; //-std=c++98 or -std=c++11

  ^

54216.C:3:12: error: scoped enumeration without a name

 enum class {}; //-std=c++11

^

54216.C:5:12: error: scoped enumeration without a name

 enum class { x }; //-std=c++11

^


[Bug c++/54216] Missing diagnostic for ill-formed anonymous enum declarations

2012-10-10 Thread paolo.carlini at oracle dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54216



Paolo Carlini paolo.carlini at oracle dot com changed:



   What|Removed |Added



 CC||amylaar at gcc dot gnu.org



--- Comment #1 from Paolo Carlini paolo.carlini at oracle dot com 2012-10-11 
00:34:06 UTC ---

*** Bug 29018 has been marked as a duplicate of this bug. ***


[Bug c++/54216] Missing diagnostic for ill-formed anonymous enum declarations

2012-08-09 Thread frankhb1989 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54216

frankhb1989 at gmail dot com changed:

   What|Removed |Added

   Severity|normal  |minor