From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E77C33858416; Wed, 18 Oct 2023 22:35:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E77C33858416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697668512; bh=4ZCv31G9zMzTv/EujPp+ikKd5oKzjqA6DVTxPQ0bLDo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oc4T6STJdD3lqQVIc96T+sSPsDsM6QMsWx4lWcnPiruknI2Z3O/Fj6rFZzKGQNPiO nMDKBMDlHDl1NfronXacihZ6dRVBladFdLbqExfBrZ8yeqCOsJDPTAEgs16KqWJaj5 4H4z9Ea0QN1icBHKh4ONLGVKsJpfRIe9rixfXT7o= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjLzEwMTM2NF0gSUNFOiB0cmVlIGNoZWNrOiBleHBlY3Rl?= =?UTF-8?B?ZCBjbGFzcyDigJh0eXBl4oCZLCBoYXZlIOKAmGV4Y2VwdGlvbmFs4oCZIChl?= =?UTF-8?B?cnJvcl9tYXJrKSBpbiBjX3R5cGVfcHJvbW90ZXNfdG8sIGF0IGMvYy10eXBl?= =?UTF-8?B?Y2suYzoyNzg=?= Date: Wed, 18 Oct 2023 22:35:10 +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.0 X-Bugzilla-Keywords: error-recovery, ice-checking, ice-on-invalid-code, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pinskia at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D101364 --- Comment #5 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:879c91fcccf93681bd7e13290bfbb384cadcd268 commit r14-4728-g879c91fcccf93681bd7e13290bfbb384cadcd268 Author: Andrew Pinski Date: Sat Oct 14 13:40:05 2023 -0700 [c] Fix PR 101364: ICE after error due to diagnose_arglist_conflict not checking for error When checking to see if we have a function declaration has a conflict d= ue to promotations, there is no test to see if the type was an error mark and then calls c_type_promotes_to. c_type_promotes_to is not ready for error_mark and causes an ICE. This adds a check for error before the call of c_type_promotes_to. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. PR c/101364 gcc/c/ChangeLog: * c-decl.cc (diagnose_arglist_conflict): Test for error mark before calling of c_type_promotes_to. gcc/testsuite/ChangeLog: * gcc.dg/pr101364-1.c: New test.=