https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115951
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andrew Macleod <amacl...@gcc.gnu.org>: https://gcc.gnu.org/g:73a8286d3ae266955fa921da1fa1328a587e7bb7 commit r15-2077-g73a8286d3ae266955fa921da1fa1328a587e7bb7 Author: Andrew MacLeod <amacl...@redhat.com> Date: Tue Jul 16 12:38:11 2024 -0400 range-ops should return the requested boolean type. The pointer based relation operator's fold_range () routines should return a boolean range with the requested type, not the default type. PR tree-optimization/115951 * range-op-ptr.cc (operator_equal::fold_range): Return a boolean range with the requested type. (operator_not_equal::fold_range): Likewise. (operator_lt::fold_range): Likewise. (operator_le::fold_range): Likewise. (operator_gt::fold_range): Likewise. (operator_ge::fold_range): Likewise.