c++/959: Problems with template specialisation and namespaces
lerdsuwa@gcc.gnu.org
lerdsuwa@gcc.gnu.org
Sun Aug 12 08:30:00 GMT 2001
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
More information about the Gcc-bugs
mailing list