From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 79FA63858C2C; Thu, 27 Apr 2023 09:42:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 79FA63858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682588523; bh=YBPgD0A0AVwk040cijDSUU4AQg1NBchm2RClZWBes40=; h=From:To:Subject:Date:In-Reply-To:References:From; b=f73QxnjBVe0HojdkDVdYc0YA6MR3WRfv7D3wP+34lPh2RvwdDWZMPhx/scCyuM604 Mq83z7/L6AuDI1JoG05PexPJHtj+qCTNMKxI4nYPSwJy6gS2S4a28nlpgc/qEE9Jbp m+kZTRz4DiyJIeEQFqd99ail8Z6VzruObWyMp9ow= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109409] [13/14 Regression] ICE in check_format_arg, at c-family/c-format.cc:1777 since r13-2205-g14cfa01755a66a Date: Thu, 27 Apr 2023 09:42:03 +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: 13.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.2 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=3D109409 --- Comment #6 from CVS Commits --- The releases/gcc-13 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:297d0efc13d73d36371583c2d6d6e7a47f88cd02 commit r13-7258-g297d0efc13d73d36371583c2d6d6e7a47f88cd02 Author: Jakub Jelinek Date: Thu Apr 27 11:36:54 2023 +0200 c: Fix up error-recovery on non-empty VLA initializers [PR109409] On the following testcase we ICE, because after we emit the variable-sized object may not be initialized except with an empty initializer error we don't really reset the initializer to error_mark_node and then= at -Wformat checking time we ICE on seeing STRING_CST initializer for a VL= A. The following patch just arranges for error_mark_node to be returned af= ter the error diagnostics. 2023-04-27 Jakub Jelinek PR c/109409 * c-parser.cc (c_parser_initializer): Move diagnostics about initialization of variable sized object with non-empty initiali= zer after c_parser_expr_no_commas call and ret.set_error (); after = it. * gcc.dg/pr109409.c: New test. (cherry picked from commit d8842271ebf9a81128df9ae80e1d3b688749eac8)=