From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7C4453858C2C; Tue, 9 May 2023 06:42:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C4453858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683614556; bh=V3/Mx6wNmoBeyiVRVXQbsQE2QqW0bXomgXTt73ycS1k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=V3py/0RqbXTQyhmbuhz4mP0fv/nGH2g8f3o7yXHcCQ7W64La5Zy8tmSr45gXQ6uI9 E9nlZfDmmIPsvMcOH1SR8NxYoreLJeVIL+TNmdCPpR0acnW3I45pBbefq+0KM2nLM6 Tv4Q90xuARuJo+FqBgeCRs0DUOn787dd8o4CWjIE= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/105660] [12 Regression] ICE in warn_parm_array_mismatch when merging two function decls and VLA arguments since r12-1218-gc6503fa93b5565c9 Date: Tue, 09 May 2023 06:42:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105660 --- Comment #14 from CVS Commits --- The releases/gcc-12 branch has been updated by Martin Uecker : https://gcc.gnu.org/g:a4308f9d432a108026d6ae8ad99d40a52eea341f commit r12-9522-ga4308f9d432a108026d6ae8ad99d40a52eea341f Author: Martin Uecker Date: Wed Feb 8 15:02:43 2023 +0100 Fix ICE related to implicit access attributes for VLA arguments [PR1056= 60] 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)=