https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121035
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:aa28a331e9f7c526540184d4b748198b8e5ad338 commit r15-10000-gaa28a331e9f7c526540184d4b748198b8e5ad338 Author: Richard Biener <rguent...@suse.de> Date: Wed Jul 16 20:19:44 2025 +0200 tree-optimization/121035 - handle stray VN values without expression When VN iterates we can end up with unreachable inserted expressions in the expression tables which in turn will not be added to their value by PREs compute_avail. This will later ICE when we pick them up and want to generate them. Deal with this by giving up. PR tree-optimization/121035 * tree-ssa-pre.cc (find_or_generate_expression): Handle values without expression. * gcc.dg/pr121035.c: New testcase. (cherry picked from commit 9af57c471087a3a1b87621bce1208d6c77ba2a4a)