This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9754: Error for legal template specialization
- From: lerdsuwa at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jkanze at caicheuvreux dot com, nobody at gcc dot gnu dot org
- Date: 21 Feb 2003 15:27:16 -0000
- Subject: Re: c++/9754: Error for legal template specialization
- Reply-to: lerdsuwa at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jkanze at caicheuvreux dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: Error for legal template specialization
State-Changed-From-To: analyzed->closed
State-Changed-By: lerdsuwa
State-Changed-When: Fri Feb 21 15:27:16 2003
State-Changed-Why:
Not a bug. The specialization
template <>
struct S<int>
{
S(int);
};
is no longer viewed as a template. So you have to write
S<int>::S(int)
{
}
without the 'template <>' prefix.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9754