summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/fused-params1.C
blob: 33732fc2871df9df2fe4bf22153b33d6c020c487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/8785
// Origin: Alexander Zvyagin <Alexander.Zviagine@cern.ch>
// { dg-do compile }

template <int N,typename T> struct A //  { dg-error "" }
{
    typedef T X;
    template <int M> void foo (const A<M,X>&);
};

template <int N,int M,typename T>
void A<N,T>::foo (const A<M,X>&) {} // { dg-error "" }