https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127719
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andrew Macleod <[email protected]>: https://gcc.gnu.org/g:ce4b6019b8758b04a8733bc672adbbaa384c752a commit r17-4907-gce4b6019b8758b04a8733bc672adbbaa384c752a Author: Andrew MacLeod <[email protected]> Date: Mon Oct 5 09:46:48 2026 -0400 Clear range info when freeing an ssa name. When an ssa name is being released, clear any current range info. THis also uncovered a bug in the def chains where clearing the def chain immediately rebuilds it. This is inadvisable when the name is being released! It also wasn't clearing the import field. PR tree-optimization/127719 gcc * gimple-range-gori.cc (range_def_chain::clear): Do not recalculate a def chain when it has just been cleared. * tree-ssanames.cc (release_ssa_name_fn): Clear range info. gcc/testsuite/ * gcc.dg/pr127719.c: New. * g++.dg/pr127729.C: New.
