2 // Templates defined outside must be declared inside
3 // crash test - XFAIL *-*-*
7 void foo(); // trick it to provide some prior declaration
8 template<class T>class X; // ERROR - previous declaration
14 { // ERROR - not declared in bar - XFAIL *-*-*
18 template<> void bar::foo<int>()
19 { // ERROR - not declared in bar - XFAIL *-*-*
22 template<class T,class U>
23 class bar::X{}; // ERROR - does not match declaration