This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14020] template keyword used as a disambiguator not conforming to ISO C++ 98
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Feb 2004 00:31:59 -0000
- Subject: [Bug c++/14020] template keyword used as a disambiguator not conforming to ISO C++ 98
- References: <20040204202720.14020.bernie@develer.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2004-02-05 00:31 -------
Subject: Re: template keyword used as a disambiguator not conforming to ISO C++ 98
"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| This was exactly the case I was talking about. In your first example,
| A is not template dependent, so A::convert<double> shouldn't have
| the "template" in the middle.
More precisely, the informaous "::template" is not allowed outside of
a template code. However, it is allowed in a template even if the
name preceding it is not dependent.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14020