blob: b8bae8602adc12447e9fbfb29df658c63fc859c7 [file] [log] [blame]
// PR c++/90215
// { dg-do compile { target c++17 } }
struct X
{
template <class F>
void f(F f)
{
f(0);
}
};
template <class... Xs>
void bug(Xs... xs)
{
int i;
[&](auto&... ys)
{
(xs.f([&](auto)
{
ys;
}), ...);
}(i);
}
int main()
{
bug(X{});
}