https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91432

Nick Desaulniers <ndesaulniers at google dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ndesaulniers at google dot com

--- Comment #3 from Nick Desaulniers <ndesaulniers at google dot com> ---
Isn't this still an implicit fallthrough, though?  It may not "be a bug," but
that's why warnings are not errors; they may not result in "bugs."

The issue is that Clang will warn in this case, so developers get confused
about writing compiler-portable code with intentional fallthrough vs being
warned about unintentional fallthrough.

Why shouldn't developers annotate that the implicit fallthrough from `case 1`
to `default` was intentional, making it explicit?

Reply via email to