Debian Codegraph @

gcc/testsuite/g++.dg/cpp26/pack-indexing17a.C

raw
1 // PR c++/121795
2 // A version of pack-indexing17.C using a nontype pack.
3 // { dg-do compile { target c++26 } }
4
5 template<int N, int... Ns>
6 struct A;
7
8 template<int... Ns>
9 struct A<Ns...[sizeof...(Ns)-1], Ns...> { };
10
11 A<0, 0> x;
12 A<0, 1> y; // { dg-error "incomplete" }