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]

Re: c++/10146: [3.4 regression] [new parser] template function lookup failure(s)


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


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