https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110228
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Adding : default:__builtin_unreachable(); Makes the testcase in this report work. Maybe there should be an assert in LLVM's code too ...