https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107170
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Aldy Hernandez <al...@gcc.gnu.org>: https://gcc.gnu.org/g:49b9a8c8cc498b1ed2f566bee858e651e14ba37b commit r13-3139-g49b9a8c8cc498b1ed2f566bee858e651e14ba37b Author: Aldy Hernandez <al...@redhat.com> Date: Thu Oct 6 19:11:08 2022 +0200 [PR107170] Avoid copying incompatible types in legacy VRP. Legacy VRP is calling ranger deep inside the bowels, and then trying to copy an incompatible type. My previous patch in this area assumed that the only possibility out of vr_values::get_value_range for an unsupported type was VARYING, but UNDEFINED can also be returned. PR tree-optimization/107170 gcc/ChangeLog: * vr-values.cc (vr_values::range_of_expr): Do not die on unsupported types. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/pr107170.c: New test.