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

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

https://gcc.gnu.org/g:a4308f9d432a108026d6ae8ad99d40a52eea341f

commit r12-9522-ga4308f9d432a108026d6ae8ad99d40a52eea341f
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.

    (cherry picked from commit 3057d7928c0dbc78dbf748c9621ccd102e06beee)

Reply via email to