https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77853
Bug ID: 77853
Summary: -Wimplicit-fallthrough: Fall through comment made
ineffective by following comment
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: amodra at gmail dot com
Target Milestone: ---
int
f (int x)
{
int ret = 0;
switch (x)
{
case 1:
ret++;
/* Fall through. */
/* Important comment about case 0. */
case 0:
ret++;
}
return ret;
}
Noticed when building binutils with current master gcc.