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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase:
struct A { A (); ~A (); };
void *bar ();
void
foo ()
{
  while (void *x = bar ())
    {
      if (1)
        {
lab:
          return;
        }
      A a;
    }
}

Reply via email to