This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/10146] [3.4 regression] accepting invalid syntax "f.template foo()"


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]