https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89888
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Guess this started with r84947 aka https://gcc.gnu.org/ml/gcc-patches/2004-07/msg01859.html So, if we want to error here, we should move what check_case_bounds does (except for the fold + convert) from c_add_case_labels to start of c_do_switch_warnings.