------- Additional Comments From florent dot gallet at orange dot fr  
2005-05-27 15:23 -------
Tested with VC++ 2003:
SansNom1.cpp(7) : warning C4346: 'A<T>::B' : dependent name is not a type
        prefix with 'typename' to indicate a type
        SansNom1.cpp(9) : see reference to class template instantiation 'A<T>' 
being compiled
SansNom1.cpp(7) : error C2061: syntax error : identifier 'B'

Code used:
7.  template<class T> struct A {
8.    typedef int B;
9.    void f(A::B);    // illformed: typename required before A::B 
10. //  A::B b;          // ok error detected
11. };

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21783

Reply via email to