Re: g++ 4.3.0 error: changes meaning

2007-09-20 Thread Richard Guenther
On 9/20/07, Ralf W. Grosse-Kunstleve <[EMAIL PROTECTED]> wrote: > Andrew Pinski wrote: > > 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. > >

Re: g++ 4.3.0 error: changes meaning

2007-09-20 Thread Ralf W. Grosse-Kunstleve
Andrew Pinski wrote: > 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 for the quick reply! This is great, I like the change since it enfor

Re: g++ 4.3.0 error: changes meaning

2007-09-20 Thread Andrew Pinski
On 9/20/07, Ralf W. Grosse-Kunstleve <[EMAIL PROTECTED]> 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/g

g++ 4.3.0 error: changes meaning

2007-09-20 Thread Ralf W. Grosse-Kunstleve
I'm testing our C++ code with g++ (GCC) 4.3.0 20070919 (experimental) That's SVN revision 128608, gcc_trunk. I'm getting many errors like this: % g++ -c changes_meaning.cpp changes_meaning.cpp:8: error: declaration of 'typedef struct ns::foo ns::bar::foo' changes_meaning.cpp:4: error: changes mea