https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115694
--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:07c12b394dfb424404019b745b5e4a9e938f6693 commit r13-9038-g07c12b394dfb424404019b745b5e4a9e938f6693 Author: Richard Biener <rguent...@suse.de> Date: Sun Jun 30 13:07:14 2024 +0200 tree-optimization/115694 - ICE with complex store rewrite The following adds a missed check when forwprop attempts to rewrite a complex store. PR tree-optimization/115694 * tree-ssa-forwprop.cc (pass_forwprop::execute): Check the store is complex before rewriting it. * g++.dg/torture/pr115694.C: New testcase. (cherry picked from commit 543a5b9da964f821b9e723ed9c93d6cdca464d47)