aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction4.C
blob: 391beee8d8f41ed876a5be6255898fc4189bea5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do compile { target c++17 } }

template <int I, int J>
struct A { };

template <int I>
struct B
{
  template<int J>
  B(A<I,J>);
};

A<42,24> a;
B b (a);

int main()
{
  (B(a));
}