https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91432
Bug ID: 91432 Summary: gcc -Wimplicit-fallthrough does not warn when fallthrough to break; Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: joe at perches dot com Target Milestone: --- This code does not emit a fallthrough warning: int foo(int i) { switch (i) { case 1: i = 0; default: break; } return i; } Basically any case block that falls through to another block of just a break statement does not get a warning. Is this a defect or what was the logic behind this decision?