2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / parse / fused-params1.C
blobadb47a0522ae9f248678a2fc60a9ca208a373361
1 // PR c++/8785
2 // Origin: Alexander Zvyagin <Alexander.Zviagine@cern.ch>
3 // { dg-do compile }
5 template <int N,typename T> struct A
6 { //  { 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 "" }