https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107497
--- Comment #5 from CVS 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:82b0345f6137b112728590d7c010dcd2cef08514 commit r13-3597-g82b0345f6137b112728590d7c010dcd2cef08514 Author: Andrew MacLeod <amacl...@redhat.com> Date: Tue Nov 1 13:18:33 2022 -0400 Make sure ssa-name is valid. PR tree-optimization/107497 * tree-vrp.cc (remove_unreachable::remove_and_update_globals): Check that ssa-name still exists before accessing it.