// P2662R3 - Pack Indexing // PR c++/113798 // { dg-do compile { target c++26 } } template constexpr auto f() { return []() { return Vs...[N]; }.template operator()<1>(); } static_assert(f<1, 2, 3>() == 2); template constexpr auto g() { return []() { return Vs...[N]; }.template operator()<1, 2, 3>(); } static_assert(g<1>() == 2);