[Bug c++/31267] #'typename_type' not supported by dump_decl#<declaration error>
guillaume dot melquiond at ens-lyon dot fr
gcc-bugzilla@gcc.gnu.org
Tue Mar 20 11:22:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list