------- Comment #1 from guillaume dot melquiond at ens-lyon dot fr  2007-03-20 
11:22 -------
I just encountered another instance of a missing typename diagnostic. This time
with a different message, so I add it here for completeness:

a.cpp:5: error: dependent-name ‘T::#‘typename_type’ not supported by
pp_cxx_unqualified_id#::D’ is parsed as a non-type, but instantiation yields a
type
a.cpp:5: note: say ‘typename T::#‘typename_type’ not supported by
pp_cxx_unqualified_id#::D’ if a type is meant

Testcase:

template<class T>
struct A
{
  typedef typename T::B C;
  void f() { C::D(); }
};

struct U
{
  struct B { struct D {}; };
};

void g() { A<U>().f(); }


-- 


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

Reply via email to