https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119921
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The fix would be in switch_conversion::check_final_bb () (near the call to initializer_constant_valid_p). To check that the vector type is not a variable length one.