Need to trick it more.

From-SVN: r28676
This commit is contained in:
Martin v. Löwis 1999-08-11 19:24:29 +00:00
parent eebd152bca
commit b6062b273f

View file

@ -2,6 +2,7 @@
// Templates defined outside must be declared inside
namespace bar
{
template<class T>
void foo(); // trick it to provide some prior declaration
template<class T>class X;
}
@ -13,9 +14,8 @@ bar::foo(T const &a)
return a;
}
template<> const int bar::foo<int>(int const &)
template<> void bar::foo<int>()
{ // ERROR - not declared in bar - XFAIL *-*-*
return 0;
}
template<class T,class U>