[Bug c++/52761] [C++11] Missing diagnostic for opaque unscoped enum declaration without base

2021-07-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52761

Andrew Pinski  changed:

   What|Removed |Added

 CC||anders.granlund.0 at gmail dot 
com

--- Comment #3 from Andrew Pinski  ---
*** Bug 67016 has been marked as a duplicate of this bug. ***

[Bug c++/52761] [C++11] Missing diagnostic for opaque unscoped enum declaration without base

2021-07-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52761

--- Comment #2 from Andrew Pinski  ---
clang declared this as a GNU extention :)
:2:6: error: redeclaration of already-defined enum 'E' is a GNU
extension [-Werror,-Wgnu-redeclared-enum]
enum E;  // illegal
 ^
:1:6: note: previous definition is here
enum E { X };
 ^

[Bug c++/52761] [C++11] Missing diagnostic for opaque unscoped enum declaration without base

2012-04-13 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52761

Jason Merrill  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2012-04-13
 CC||jason at gcc dot gnu.org
 Ever Confirmed|0   |1

--- Comment #1 from Jason Merrill  2012-04-13 
20:12:33 UTC ---
I think you're right.