From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9F6BE3858024; Thu, 5 Aug 2021 13:08:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F6BE3858024 From: "llvm at rifkin dot dev" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/101790] New: ICE on invalid regression in trunk: tree check: expected class 'type', have 'exceptional' (error_mark) Date: Thu, 05 Aug 2021 13:08:12 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: llvm at rifkin dot dev 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 bug_severity priority component assigned_to reporter target_milestone 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2021 13:08:12 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101790 Bug ID: 101790 Summary: ICE on invalid regression in trunk: tree check: expected class 'type', have 'exceptional' (error_mark) Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: llvm at rifkin dot dev Target Milestone: --- https://godbolt.org/z/9ozxbY5nh template concept a=3D; int b=3Da<>; :2:11: error: expected primary-expression before ';' token 2 | concept a=3D; | ^ : In function 'void __static_initialization_and_destruction_0(int, int)': :3:7: internal compiler error: tree check: expected class 'type', h= ave 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.c:87 3 | int b=3Da<>; | ^~~ 0x1db4d89 internal_error(char const*, ...) ???:0 0x6a23c3 tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) ???:0 0xd76e33 useless_type_conversion_p(tree_node*, tree_node*) ???:0 0x136bdf6 tree_ssa_strip_useless_type_conversions(tree_node*) ???:0 0xdbe63f gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdc14ca gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdc43a8 gimplify_stmt(tree_node**, gimple**) ???:0 0xdc0d3e gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdc43a8 gimplify_stmt(tree_node**, gimple**) ???:0 0xdbfe83 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdc43a8 gimplify_stmt(tree_node**, gimple**) ???:0 0xdc12b0 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdc43a8 gimplify_stmt(tree_node**, gimple**) ???:0 0xdc12b0 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdc43a8 gimplify_stmt(tree_node**, gimple**) ???:0 0xdc600e gimplify_body(tree_node*, bool) ???:0 0xdc6627 gimplify_function_tree(tree_node*) ???:0 0xbe2ad7 cgraph_node::analyze() ???:0 0xbe6f0d symbol_table::finalize_compilation_unit() ???:0 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=