https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129250
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2026-12-03
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed on trunk. In gimple-range-op.cc:cfn_toupper_tolower::fold_range,
ranger assumes toupper only maps characters in the ASCII range 'a'..'z' to
'A'..'Z' and returns the argument unchanged for all other values. In non-C
single-byte locales (such as ISO-8859-1), non-ASCII lowercase characters like
224 (à) map to uppercase (192, À), so ranger incorrectly computes the result
range as [65, 90] U [224, 225] and VRP folds the comparison against 192 to
false.