https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97812
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|marxin at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> --- OK, and the reason is that wi::fits_to_tree_p interprets USHORT_MAX as signed -1 (wide_int is canonically sign-extended) and that fits signed char. I guess fits_to_tree_p was supposed to be used on widest_ints only.