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

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

https://gcc.gnu.org/g:3057d7928c0dbc78dbf748c9621ccd102e06beee

commit r13-6127-g3057d7928c0dbc78dbf748c9621ccd102e06beee
Author: Martin Uecker <uec...@tugraz.at>
Date:   Wed Feb 8 15:02:43 2023 +0100

    Fix ICE related to implicit access attributes for VLA arguments [PR105660]

    When constructing the specifier string when merging an access attribute
    that encodes information about VLA arguments, the string was constructed
    in random order by iterating through a hash table. Fix this by iterating
    though the list of arguments.

    gcc/c-family/Changelog:
            PR c/105660
            * c-attribs.cc (append_access_attr): Use order of arguments when
            construction string.
            (append_access_attr_idxs): Rename and make static.
            * c-warn.cc (warn_parm_array_mismatch): Add assertion.

    gcc/testsuite/ChangeLog:
            PR c/105660
            * gcc.dg/pr105660-1.c: New test.
            * gcc.dg/pr105660-2.c: New test.

Reply via email to