https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61340
--- Comment #2 from David Binderman <dcb314 at hotmail dot com> --- (In reply to Manuel López-Ibáñez from comment #1) > GCC's -Wswitch does not catch this? On checking the gcc trunk build logs, yes. Only clang can find the problem, not trunk gcc. I had a look in gcc/testsuite/ for a file that clang can find the problem in, but trunk gcc can't. The first one is gcc.c-torture/compile/pr39845.c This might be worth a deeper look.