2 // Origin: Alexander Zvyagin <Alexander.Zviagine@cern.ch>
5 template <int N,typename T> struct A // { dg-error "" }
8 template <int M> void foo (const A<M,X>&);
11 template <int N,int M,typename T>
12 void A<N,T>::foo (const A<M,X>&) {} // { dg-error "" }