This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11351] typedef to nested template causes error
- From: "ehrhardt at mathematik dot uni-ulm dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jun 2003 13:45:26 -0000
- Subject: [Bug c++/11351] typedef to nested template causes error
- References: <20030627131554.11351.benko@sztaki.hu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11351
ehrhardt at mathematik dot uni-ulm dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From ehrhardt at mathematik dot uni-ulm dot de 2003-06-27 13:45 -------
Indeed, the template keyword is needed here. This is 14.2[4]:
When the name of a member template specialization
appears after . or -> in a postfix-expression, or
after nested-name-specifier in a qualified-id, and the
postfix-expression or qualified-id explicitly depends on
a template-parameter (14.6.2), the member template name
must be prefixed by the keyword template. Otherwise the
name is assumed to name a non-template.
regards Christian