This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++] Patch c++/15049
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Matt Austern <austern at apple dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 17 Sep 2004 19:01:24 +0200
- Subject: Re: [C++] Patch c++/15049
- References: <CE83EF90-08C9-11D9-B68A-000A95BCF344@apple.com>
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.