https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77955
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> --- (In reply to Markus Trippelsdorf from comment #0) > As you can see gcc issues a bogus warning and doesn't warn for the case 2 > fallthrough. It falls through to default: break; so it should warn for that case.