[Bug c++/10146] [3.4 regression] accepting invalid syntax "f.template foo()"
giovannibajo at libero dot it
gcc-bugzilla@gcc.gnu.org
Sun Jun 22 21:33:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list