This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/10146] [3.4 regression] accepting invalid syntax "f.template foo()"
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jun 2003 21:29:34 -0000
- Subject: [Bug c++/10146] [3.4 regression] accepting invalid syntax "f.template foo()"
- References: <20030319085600.10146.rguenth@tat.physik.uni-tuebingen.de>
- 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=10146
giovannibajo at libero dot it changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From giovannibajo at libero dot it 2003-06-22 21:29 -------
It looks like I was wrong with the analysys of this bug. The postfix
expression "f.template foo(123)" is indeed valid. In fact, the
keyword "template" must be used before a template-id naming a dependent member
template specialization (§14.2/4), but it's use is forbidden only if the name
is not the name of a member template (§14.2/5). In this case, foo() is a member
template, so nothing is wrong.
I close this as fixed because of the previous bugs that are now fixed in the
mainline.