From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 29FF73858422; Fri, 23 Sep 2022 00:24:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29FF73858422 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663892689; bh=SU/pbAO4ZckncfGvWnc3KEtchzuYhC7/7++MH1RvIaU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=C1dR69arHoPlhOeBV2wHQBf4SZ89g0pNR4Eb7vH4i4w2gwrfZVni9quizDIhVQnjZ PlFlOrfAkfKa8oRM4ebu3jeO+jzl0Jjn/juZLPljp6eqN9cz3+9SRxjEAnwvzou7cx qHTDbSBnxDnxbq4ULQHImeSEPmT6B9xQwu37EtII= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106983] [12/13 Regression] ICE tree check: expected class 'type', have 'exceptional' (error_mark) in type_build_dtor_call, at cp/class.cc:5794 Date: Fri, 23 Sep 2022 00:24:31 +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: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: trivial 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: mpolacek 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=3D106983 --- Comment #3 from CVS Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:8b449dcd84334068c769a2f427812dadb95e61de commit r13-2803-g8b449dcd84334068c769a2f427812dadb95e61de Author: Marek Polacek Date: Tue Sep 20 14:54:57 2022 -0400 c++: ICE-on-invalid with designated initializer [PR106983] We ICE in the code added in r12-7117: type_build_dtor_call gets the error_mark_node because the type of 'prev' wasn't declared. PR c++/106983 gcc/cp/ChangeLog: * typeck2.cc (split_nonconstant_init_1): Check TYPE_P. gcc/testsuite/ChangeLog: * g++.dg/other/error36.C: New test.=