https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108647
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Perhaps just adding if (op2.undefined_p ()) return false; above most of the switch (get_bool_state (r, lhs, type)) lines (in methods that refer to op2; and similarly for op1) for the comparison operators.