This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++] Patch c++/15049


Matt Austern wrote:

This fixes http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15049

Previous compilers accepted the construct "enum { x = 3 } x;", but mainline flags it as an error. Based on my reading of the C++ standard and of committee actions on this subject, I believe that our compiler is incorrect. This construct is found in real code, and failing to accept it breaks the build of (among other things) CPU2004.

Hi Matt,


sorry for sticking my nose in C++ front end issues, but I'm always eager to learn more...

Could you possibly explain how this relates to the resolution ("Ready") of DR389?

Thanks in advance,
Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]