[Bug c/101702] [12 Regression] ICE: in handle_argspec_attribute, at c-family/c-attribs.c:3623

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 17 18:53:08 GMT 2021


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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <msebor@gcc.gnu.org>:

https://gcc.gnu.org/g:2c2148d8c144d7388abcb7c34b782be647fe81c9

commit r12-5347-g2c2148d8c144d7388abcb7c34b782be647fe81c9
Author: Martin Sebor <msebor@redhat.com>
Date:   Wed Nov 17 11:51:33 2021 -0700

    Handle folded nonconstant array bounds [PR101702]

    PR c/101702 - ICE: in handle_argspec_attribute, at
c-family/c-attribs.c:3623

    gcc/c/ChangeLog:

            PR c/101702
            * c-decl.c (get_parm_array_spec): Strip casts earlier and fold
array
            bounds before deciding if they're constant.

    gcc/testsuite/ChangeLog:

            PR c/101702
            * gcc.dg/Warray-parameter-11.c: New test.


More information about the Gcc-bugs mailing list