https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119073

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
struct A { ~A (); };
struct B { B (const A &a = A ()); int *begin (); int *end (); ~B (); };

void
foo (bool x)
{
  for (auto i : (x ? B{} : B{}))
    ;
}

ICEs as well.

Reply via email to