[Bug c++/14020] template keyword used as a disambiguator not conforming to ISO C++ 98
gdr at integrable-solutions dot net
gcc-bugzilla@gcc.gnu.org
Thu Feb 5 02:44:00 GMT 2004
------- Additional Comments From gdr at integrable-solutions dot net 2004-02-05 02:43 -------
Subject: Re: template keyword used as a disambiguator not conforming to ISO C++ 98
"giovannibajo at libero dot it" <gcc-bugzilla@gcc.gnu.org> writes:
| > 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.
|
| ... which, by the way, is exactly what our diagnostic says:
|
| foo.cc:9: error: `template' (as a disambiguator) is only allowed within
| templates
I was adding a precision to the message I was replying to which were
implying that the name before "::template" ought to be dependent.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14020
More information about the Gcc-bugs
mailing list