3 msgtgmath.h and newlib
2 msgHow to force instruction in slot1 while emit NO...
5 msgAST-tree in GCC
2 msggcc crosscompile for PPC, Please help!
1 msgRegister Allocation Reviewers
1 msgCambio de direccion.
5 msghow to chase a tree check failure in verify_ssa?
6 msgsupport single predicate set instructions in GC...
1 msggcc-4.3-20070921 is now available
25 msg[RFC] failures found while pounding on GCC trunk
1 msgBootstrap comparison failure on sparc64/sparc l...
2 msgUnderstanding Macro Pre-processor
3 msgfunction overloading and variadic arguments

g++ 4.3.0 error: changes meaning
\ Ralf W. Grosse-Kunstleve (20 Sep 2007)
. \ Andrew Pinski (20 Sep 2007)
. \ Ralf W. Grosse-Kunstleve (20 Sep 2007)
. . \ Richard Guenther (20 Sep 2007)

7 msgBug in gcc: assignment to non-lvalue
3 msgInconsistent error/pedwarn: ISO C++
4 msgGCC spec posting on AMD Barcelona
1 msgRe: [Bug c/33076] Warning when passing a pointe...
1 msgpowerpc bootstrap failure
12 msgMIPS atomic memory operations (A.K.A PR 33479).
Subject:g++ 4.3.0 error: changes meaning
Group:Gcc
From:Ralf W. Grosse-Kunstleve
Date:20 Sep 2007


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<double> ns::bar::foo'
changes_meaning.cpp:4: error: changes meaning of 'foo' from 'struct ns::foo<double>'

A minimal reproducer is below.

Compilation works with *many* other compilers incl. all older, released g++, Visual C++, and EDG-based compilers.
Also, if I make this change it works with g++ 4.3.0:

< typedef foo<double> foo;


---
> typedef ns::foo<double> foo;

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?

Thanks!
Ralf


namespace ns {

template <typename T>
struct foo {};

struct bar
{
typedef foo<double> foo;
};

}





________________________________________________________________________________ ____
Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos.
http://autos.yahoo.com/index.html





© 2004-2008 readlist.com