Merged r157896 through r158228 into branch.
[official-gcc.git] / gcc / testsuite / g++.dg / parse / fused-params1.C
blob33732fc2871df9df2fe4bf22153b33d6c020c487
1 // PR c++/8785
2 // Origin: Alexander Zvyagin <Alexander.Zviagine@cern.ch>
3 // { dg-do compile }
5 template <int N,typename T> struct A //  { dg-error "" }
7     typedef T X;
8     template <int M> void foo (const A<M,X>&);
9 };
11 template <int N,int M,typename T>
12 void A<N,T>::foo (const A<M,X>&) {} // { dg-error "" }