[Bug tree-optimization/126150] [16/17 Regression] ICE Segmentation fault / in delink_imm_use, at ssa-iterators.h:285 since r16-5056

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 8 12:45:08 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126150

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:210b4eca880c88e7f7ec970b68a93a2a28bad1be

commit r17-2220-g210b4eca880c88e7f7ec970b68a93a2a28bad1be
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Jul 8 13:57:17 2026 +0200

    tree-optimization/126150 - ICE with replace_uses_by

    replace_uses_by triggers eventual BB removal from inside a
    FOR_EACH_IMM_USE_STMT iteration.  That's a no-go since we might
    eliminate uses in the list we are currently processing.  The
    fix is to defer EH edge purging.

            PR tree-optimization/126150
            * tree-cfg.cc (replace_uses_by): Delay purging of EH edges
            until after FOR_EACH_IMM_USE_STMT finished.

            * g++.dg/pr126150.C: New testcase.


More information about the Gcc-bugs mailing list