[Bug c/53502] [4.8 Regression] Bootstrap broken with --disable-build-poststage1-with-cxx
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 28 15:53:00 GMT 2012
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.
More information about the Gcc-bugs
mailing list