c++/10759: Invalid use of typename accepted
giovannibajo@libero.it
giovannibajo@libero.it
Tue May 13 12:06:00 GMT 2003
Synopsis: Invalid use of typename accepted
State-Changed-From-To: open->closed
State-Changed-By: bajo
State-Changed-When: Tue May 13 11:32:52 2003
State-Changed-Why:
Not a bug IMO. 'typename' can be used anywhere within a
template definition, as long as it refers to a qualified
name which names a type. It's required only if the name
is dependent, but it is accepted even if it is not. In your
case, NS::C<T> is a qualified non-dependent name within a
template definition so it can be preponed with 'typename'.
If you move C<> out of NS, you remove the qualification.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10759
More information about the Gcc-bugs
mailing list