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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Not completelly fixed, there's another case from linux kernel.
I've been testing patch for that:

// { dg-do compile }
// { dg-additional-options "-Wno-switch-unreachable" }

int a;
void
fn1 ()
{
  switch (a)
    {
      char b;
    case 8:
      &b;
      switch (0)
        ;
    }
}

Reply via email to