[Bug sanitizer/112741] ICE: in gimplify_var_or_parm_decl, at gimplify.cc:3261

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 28 15:58:52 GMT 2023


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

--- Comment #3 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:f45d5e30bd98ea1d8dc29841a06b2cfa5662deb5

commit r14-5935-gf45d5e30bd98ea1d8dc29841a06b2cfa5662deb5
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Nov 28 12:49:35 2023 +0100

    middle-end/112741 - ICE with gimple FE and later regimplification

    The GIMPLE frontend, when bypassing gimplification, doesn't set
    DECL_SEEN_IN_BIND_EXPR_P given there are no such things in GIMPLE.
    But it probably should set the flag anyway to avoid later ICEs
    when regimplifying.

            PR middle-end/112741
    gcc/c/
            * gimple-parser.cc (c_parser_parse_gimple_body): Also
            set DECL_SEEN_IN_BIND_EXPR_Pfor locals.

    gcc/testsuite/
            * gcc.dg/ubsan/pr112741.c: New testcase.


More information about the Gcc-bugs mailing list