This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/959: Problems with template specialisation and namespaces
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, kmshanah at senet dot com dot au, nobody at gcc dot gnu dot org
- Subject: Re: c++/959: Problems with template specialisation and namespaces
- From: lerdsuwa at gcc dot gnu dot org
- Date: 12 Aug 2001 15:30:24 -0000
Synopsis: Problems with template specialisation and namespaces
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sun Aug 12 08:30:24 2001
State-Changed-Why:
The submitted testcase is not legal. However the correct
code below fails to compile and should be fixed:
namespace Foo
{
template<class T> void bar(const T);
template<> void bar(const int);
}
template<class T>
void Foo::bar(const T arg) { }
template<>
void Foo::bar(const int arg) { }
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=959&database=gcc