aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/class-deduction-alias14.C
blob: 22b96bcd5d3429a03d7bce21cec36d80d72575ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/105841
// { dg-do compile { target c++20 } }

template<class T, int N>
struct A { A(...); };

template<class T, class... Ts>
A(T, Ts...) -> A<T, sizeof...(Ts)>;

template<class T, int N=0>
using B = A<T, N>;

B b(0, 0);