https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115694
--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:543a5b9da964f821b9e723ed9c93d6cdca464d47 commit r15-1743-g543a5b9da964f821b9e723ed9c93d6cdca464d47 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.