<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/102678>102678</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang] False positive -Wimplicit-fallthrough for fallthrough to break
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          chrchr-github
      </td>
    </tr>
</table>

<pre>
    ~~~c++
int f(int i) {
    int j = 0;
    switch (i) {
    case 1: {
 j = 2;
    }
    default:
        break;
    }
    return j;
}
~~~
~~~
<source>:7:9: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
    7 | default:
      |         ^
<source>:7:9: note: insert 'break;' to avoid fall-through
    7 |         default:
      |         ^
      | break; 
~~~
https://godbolt.org/z/PezPf5Pn5
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU81u2zAMfhr6IiRQKP_l4EPa1OfedpZl2lanSIEkp1gPefZB-WnSbB0wQgAlUh_5kQRlCHq0RA0UT1BsMznHyflGTV5NfjHqOM1d1rn-V3M8HhXgUzp8C3yjbWQDYJ20BlwzqC4exhhL1jcGYss4iDt7eNdRTSzh_sAoGYitQGzuzOcY-CUGVNvbo6dBziaC2NxsSTpP8uf3ME9x9pa9ff749B6Px4cLiOfgZq8IxAuITQVis04s36W32o7pOltprYsyUs8GacwiTt7N48Q6iu9E9lq3kR2ZwKB4WvzQu73RSsdFAlz-Q3HHsWJQPX9TYPJcBYqXfxO1LlLS2gbykQFWn93BikXH5MHpr8QfWVzlP9jcXNds7KGxU4z7kEJhC9iOru-ciUvnR8D2A7B9pY_XoXi1RdY3ol-LtcyoWVUoUBRlVWdTU_YSkXPRD3ndU6mUzMuc6oGo7LGsh0w3yDHnNV8jF7mol_1KUbEaSlUTlXItIOe0k9osjTnsUu5MhzBTs-KYUpwHdtoORGWkHQExLYpvEmDRzWOAnBsdYriFiDqa00qdEcWWtdIEYnsXdNQHYn-fPhucZ_fv6M69y2ZvmodunVZzqdwOsE2JL2qx9-6NVARsT4UEwPZSy6HB3wEAAP__eEchwA">