c++/10146: [3.4 regression] [new parser] template function lookup failure(s)
Giovanni Bajo
giovannibajo@libero.it
Wed Mar 19 14:24:00 GMT 2003
No, because Foo<int>::foo (and the others) is not a dependent name. §14.2p4
e p5 explain that the keyword "template" to qualify member templates must be
used if the postfix expression (obj.member in short) is dependent, and must
never be used to qualify members which are not templates.
So, in those three lines basically the template keyword is optional, but not
required.
Giovanni Bajo
More information about the Gcc-bugs
mailing list