This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10146: [3.4 regression] [new parser] template function lookup failure(s)
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: "Richard Guenther" <rguenth at tat dot physik dot uni-tuebingen dot de>
- Cc: <gcc-gnats at gcc dot gnu dot org>,<gcc-bugs at gcc dot gnu dot org>,<nobody at gcc dot gnu dot org>,<gcc-prs at gcc dot gnu dot org>
- Date: Wed, 19 Mar 2003 13:53:38 +0100
- Subject: Re: c++/10146: [3.4 regression] [new parser] template function lookup failure(s)
- References: <Pine.LNX.4.44.0303191319110.22005-100000@bellatrix.tat.physik.uni-tuebingen.de>
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