From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5202038493EE; Mon, 5 Dec 2022 19:09:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5202038493EE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670267365; bh=b3fzqp9hqwj6yU0t6AFtmuSTK8OVUUQ2y5npnHD3gvU=; h=From:To:Subject:Date:From; b=bqHmXZuOpZ/WE5ORcCQsWLKB/8B7SS3kvJKVIZfuEOdgVq9D4VXR4o8+yy5zhbS2M TUYtJfhWhIIT46dWtkdRyYYBk2PfKLExiWM9ZaUNAkfHD16Z8UK0Vrfm2SNN/xkUE/ hbf6M2rXZOTk5dMjdh9cVKME8+7C4j02irZbadbE= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107978] New: ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in dump_ada_declaration, at c-family/c-ada-spec.cc:2802 with -fdump-ada-spec Date: Mon, 05 Dec 2022 19:09:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created Message-ID: 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=3D107978 Bug ID: 107978 Summary: ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in dump_ada_declaration, at c-family/c-ada-spec.cc:2802 with -fdump-ada-spec Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 54020 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54020&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-g++ -fdump-ada-spec testcase.C=20 testcase.C:1:10: error: aggregate 'S s' has incomplete type and cannot be defined 1 | struct S s; | ^ testcase.C:1:11: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in dump_ada_declaration, at c-family/c-ada-spec.cc:2802 1 | struct S s; | ^ 0x8e5d3c tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) /repo/gcc-trunk/gcc/tree.cc:8872 0x7810a7 tree_class_check(tree_node*, tree_code_class, char const*, int, ch= ar const*) /repo/gcc-trunk/gcc/tree.h:3651 0x7810a7 dump_ada_declaration /repo/gcc-trunk/gcc/c-family/c-ada-spec.cc:2802 0x1111629 dump_ada_nodes /repo/gcc-trunk/gcc/c-family/c-ada-spec.cc:826 0x1111629 dump_ads /repo/gcc-trunk/gcc/c-family/c-ada-spec.cc:3481 0x1111629 dump_ada_specs(void (*)(char const*), int (*)(tree_node*, cpp_operation)) /repo/gcc-trunk/gcc/c-family/c-ada-spec.cc:3560 0xed18e9 c_parse_final_cleanups() /repo/gcc-trunk/gcc/cp/decl2.cc:4919 0x10fb220 c_common_parse_file() /repo/gcc-trunk/gcc/c-family/c-opts.cc:1266 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions.=