https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82792
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |mpolacek at gcc dot gnu.org Resolution|--- |INVALID --- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> --- You should just swap these two lines: __attribute__((fallthrough)); default_case: so that the null statement with the attribute precedes the case. Not a bug.