https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83739
--- Comment #7 from Marc Glisse <glisse at gcc dot gnu.org> ---
And to drop the includes:
template <bool> void f()
{
int x[2];
auto delegate = [](auto & foo)
{
for (auto bar : foo);
};
delegate(x);
}
int main() {
f<true>();
}
