From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 246F93858C62; Fri, 8 Dec 2023 18:34:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 246F93858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702060497; bh=SET4g5RSUsOl1ViSzYUWGtoxQuiLq6V1dEu5lqsphp0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DmQDF8TpK3dmfoK4XJUn6u1eCIqbuaSjW9uUXK2Igr8At1iG5vkzjzcmoV3XPjjPg RUlT8rDVRJ1YWwJd5q0ZhzRINn9WRUlED236Jikrw6eEuKRReaxO/mS9X+7CaTWcAL G836slo3HSWfO6KsmjUHYbkpco9W3Ie7DNZXTvvg= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/112658] [12/13 Regression] ICE: finish_expr_stmt with casting an temp array to pointer and constructor call Date: Fri, 08 Dec 2023 18:34:56 +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.2.1 X-Bugzilla-Keywords: ice-on-valid-code, wrong-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: P3 X-Bugzilla-Assigned-To: ppalka 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=3D112658 --- Comment #8 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:0c018a74eb1affe2a1fa385cdddaa93979683420 commit r14-6343-g0c018a74eb1affe2a1fa385cdddaa93979683420 Author: Patrick Palka Date: Fri Dec 8 13:34:04 2023 -0500 c++: guard more against undiagnosed error_mark_node [PR112658] This adds a sanity check to cp_parser_expression_statement similar to the one in finish_expr_stmt added by r6-6795-g0fd9d4921f7ba2, which effectively downgrades accepts-invalid/wrong-code bugs like this one into ice-on-invalid/ice-on-valid ones. PR c++/112658 gcc/cp/ChangeLog: * parser.cc (cp_parser_expression_statement): If the statement is error_mark_node, make sure we've seen_error().=