blob: d958af3620d0a282ce06afb9d5fa15afda6753f8 [file] [log] [blame]
// PR c++/117898
// { dg-do compile { target c++26 } }
void
ICE (auto... args)
{
[&]<int idx>() {
using R = decltype(args...[idx]); // { dg-error "cannot index an empty pack" }
}.template operator()<0>();
}
void
g ()
{
ICE(); // empty pack
}