This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31267] New: #'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: 19 Mar 2007 16:02:54 -0000
- Subject: [Bug c++/31267] New: #'typename_type' not supported by dump_decl#<declaration error>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This wrong code (missing typename):
template<class T>
struct A
{
typedef typename T::B C;
void f(C::D x);
};
gives the following error message:
a.cpp:5: error: '#'typename_type' not supported by dump_decl#<declaration
error>::D' is not a type
instead of "'C::D' is not a type".
--
Summary: #'typename_type' not supported by dump_decl#<declaration
error>
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: guillaume dot melquiond at ens-lyon dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31267