From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CCDA93858412; Mon, 24 Oct 2022 17:57:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CCDA93858412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666634220; bh=h3YCTX+iliWIjAF0PSdxtb8g1vnrB+az+9e8m9msGls=; h=From:To:Subject:Date:From; b=K7n/Lk2+L1v3UevFQmr4+5p0ceOHWe5aatNXe9lhkDqkqSq2i8vo2W2cn6moEmlp+ L27pCj/Kbz9U9LFrQU4cUwNPplxR9FO0C8K4cY+UDe2+cfsQYwVpPCJLAIvrI3tO/W Aisu21B4gMGEn714Buqm6vXLNXnSFYNWEYcsM16s= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107384] New: [13 Regression] ICE tree check: expected non_lvalue_expr or static_cast_expr, have error_mark in set_implicit_rvalue_p, at cp/cp-tree.h:8689 Date: Mon, 24 Oct 2022 17:57:00 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107384 Bug ID: 107384 Summary: [13 Regression] ICE tree check: expected non_lvalue_expr or static_cast_expr, have error_mark in set_implicit_rvalue_p, at cp/cp-tree.h:8689 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started between 20220925 and 20221009 : (gcc configured with --enable-checking=3Dyes) $ cat z1.cc auto a =3D [] { b; return b; }; $ gcc-13-20221023 -c z1.cc -std=3Dc++2b z1.cc: In lambda function: z1.cc:1:15: error: 'b' was not declared in this scope 1 | auto a =3D [] { b; return b; }; | ^ z1.cc:1:25: internal compiler error: tree check: expected non_lvalue_expr or static_cast_expr, have error_mark in set_implicit_rvalue_p, at cp/cp-tree.h:8689 1 | auto a =3D [] { b; return b; }; | ^ 0x7016f0 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/tree.cc:8836 0xb31e9a tree_check2(tree_node*, char const*, int, char const*, tree_code, tree_code) ../../gcc/tree.h:3545 0xb31e9a set_implicit_rvalue_p(tree_node*) ../../gcc/cp/cp-tree.h:8689 0xb31e9a treat_lvalue_as_rvalue_p(tree_node*, bool) ../../gcc/cp/typeck.cc:10729 0xa5fb27 do_auto_deduction(tree_node*, tree_node*, tree_node*, int, auto_deduction_context, tree_node*, int) ../../gcc/cp/pt.cc:30472 0xb4fdd4 check_return_expr(tree_node*, bool*) ../../gcc/cp/typeck.cc:11002 0xad660e finish_return_stmt(tree_node*) ../../gcc/cp/semantics.cc:1230 0xa0449d cp_parser_jump_statement ../../gcc/cp/parser.cc:14311 0xa0449d cp_parser_statement ../../gcc/cp/parser.cc:12288 0xa04c34 cp_parser_statement_seq_opt ../../gcc/cp/parser.cc:12853 0xa04d17 cp_parser_compound_statement ../../gcc/cp/parser.cc:12805 0xa054da cp_parser_function_body ../../gcc/cp/parser.cc:25179 0xa054da cp_parser_lambda_body ../../gcc/cp/parser.cc:11762 0xa054da cp_parser_lambda_expression ../../gcc/cp/parser.cc:11085 0xa054da cp_parser_primary_expression ../../gcc/cp/parser.cc:5766 0xa08d9e cp_parser_postfix_expression ../../gcc/cp/parser.cc:7717 0xa20fef cp_parser_unary_expression ../../gcc/cp/parser.cc:9081 0x9ebd2f cp_parser_cast_expression ../../gcc/cp/parser.cc:9985 0x9ec65f cp_parser_binary_expression ../../gcc/cp/parser.cc:10087 0x9ed404 cp_parser_assignment_expression ../../gcc/cp/parser.cc:10427=