summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp52.C
blob: 25dc7e752beea4458fbb00cc256cc8d2a5e42fcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Build don't link:
// GROUPS passed templates membertemplates
template<class T, int N>
class A { };

template<int N>
struct X {
    template<class T2, int N2>
    void f(A<T2,N>&, A<int,N2>&)
    { }
};


void foo()
{
  X<3> x;
  A<char*, 3> a1;
  A<int, 2> a2;
  x.f(a1, a2);
}