1// { dg-do link } 2// Origin: Mark Mitchell <mark@codesourcery.com> 3 4template <int n> struct A { 5 template <class T> A (T t); 6 template <class T> int f(T t) const; 7}; 8 9template <> template<class T> int A<1>::f(T t) const {return 1;} 10template <> template<class T> A<1>::A (T t) {} 11 12int main() { 13 A<1> a (3); 14 a.f(1); 15 return 0; 16} 17