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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-05-28 
15:52:39 UTC ---
I believe because for C++ that kind of typedef isn't useless when the enum is
anonymous - the typedef gives it a name.
On
int
foo ()
{
  typedef enum { A = 1 } E1, E2;
  typedef enum E { B = 1 } E3, E4;
  return A + B;
}

C warns about E{1,2,3,4}, while C++ warns just about E{2,3,4}, but not E1.

Reply via email to