// PR c++/122169 // { dg-do compile { target c++26 } } template concept same_as = __is_same(T, U); template void f() { using T = Ts...[0]; static_assert(same_as); []() { using U = Ts...[I]; static_assert(same_as); }.template operator()<0>(); } template void f(); template void g() { using T = Ts...[0]; static_assert(same_as); []() { using U = Ts...[I]; static_assert(same_as); }.template operator()<0>(); } template void g();