Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/class-deduction95.C

raw
1 // PR c++/100983
2 // { dg-do compile { target c++17 } }
3
4 struct X {
5 template<int N>
6 struct Y { template<class... Ts> Y(Ts...); };
7
8 template<class... Ts> Y(Ts...) -> Y<sizeof...(Ts)>;
9 };
10
11 X::Y y{1,2,3};