This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31267] #'typename_type' not supported by dump_decl#<declaration error>
- From: "guillaume dot melquiond at ens-lyon dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Mar 2007 11:22:41 -0000
- Subject: [Bug c++/31267] #'typename_type' not supported by dump_decl#<declaration error>
- References: <bug-31267-7904@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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