https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104334
--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I think to_widest only works with INTEGER_CSTs, to do the comparisons (or have ?h_range be widest_int), we'd need to use widest_int::from I think. Anyway, with the above patch I've built so far stage2 cc1plus and that no longer miscompiles the testcase.