This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g++ 4.3.0 error: changes meaning
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Ralf W. Grosse-Kunstleve" <rwgk at yahoo dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 20 Sep 2007 12:20:12 -0700
- Subject: Re: g++ 4.3.0 error: changes meaning
- References: <997661.43511.qm@web31106.mail.mud.yahoo.com>
On 9/20/07, Ralf W. Grosse-Kunstleve <rwgk@yahoo.com> wrote:
> Compilation works with *many* other compilers incl. all older, released g++, Visual C++, and EDG-based compilers.
And that does not make the code valid.
> I spent some time with Google and also looked here:
> http://gcc.gnu.org/gcc-4.3/changes.html
> But I couldn't find an indication that the new error is intentional.
> Is it?
Yes it is intentional. It is an extension of an already existing
error with non templates. The code is invalid, though the C++
standard does make a mention, this does not have to be diagnostic.
Thanks,
Andrew Pinski