☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
class-deduction95.C
☽
☼
gcc/testsuite/g++.dg/cpp1z/class-deduction95.C
code
plain
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};