Debian Codegraph @

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

raw
1 // P2662R3 - Pack Indexing
2 // PR c++/113798
3 // { dg-do compile { target c++26 } }
4
5 template <int I, auto...Ts>
6 decltype(Ts...[I])
7 foo () // { dg-bogus "sorry, unimplemented: mangling" }
8 {
9 return Ts...[I];
10 }
11
12 int
13 g ()
14 {
15 return foo<2, 0, 1, 42>();
16 }