This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++-980308: bug in template template parameter implementation again [Sorry Kriang;-)!]
- To: Bernd Nottelmann <nottelm at ptp283 dot uni-muenster dot de>
- Subject: Re: g++-980308: bug in template template parameter implementation again [Sorry Kriang;-)!]
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 13 Mar 1998 18:41:49 -0300
- Cc: egcs-bugs at cygnus dot com, Kriang Lerdsuwanakij <lerdsuwa at scf-fs dot usc dot edu>
- References: <350956F3.FEF1DF54@pt2037.uni-muenster.de>
Bernd Nottelmann writes:
> template <> Add < T, Id, Id > operator+(const Id<T>& e) const {
For explicit specialization of a template function, the template
function name must be followed by angle brackets:
template <> Add < T, Id, Id > operator+<>(const Id<T>& e) const {
^^
I don't know whether this helps fixing the problem, though.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil