From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B41F83858D1E; Tue, 24 Jan 2023 17:50:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B41F83858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674582603; bh=U7q6M+rQ/k9KBgLI/sgwI/8uKJveS88x/pIUZX/tGpg=; h=From:To:Subject:Date:From; b=eYY4dYyLhsWuVR1ZFdoUtvFqbykYCmA+03NzTD/9xvhanrnVpKuCPdR2UzMBI4Ajp WIfPxFJ3Nr6BdjvwKg/XYvGBOS9XF1xS+eLbXY5mc5hJIlf/NIrZVCD36BAHvQhW7C G7mXxiYPpLyfd937IAj+Mb+5NJ16YDvse1niKtU8= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108526] New: [13 Regression] ICE in start_preparsed_function, at cp/decl.cc:17281 Date: Tue, 24 Jan 2023 17:50:03 +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=3D108526 Bug ID: 108526 Summary: [13 Regression] ICE in start_preparsed_function, at cp/decl.cc:17281 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 : $ cat z1.cc template void f() { auto a =3D [] (auto x) static { return x; }; } template void f(); $ g++-13-20230122 -c z1.cc -std=3Dc++23 z1.cc: In instantiation of 'void f() [with =3D int= ]': z1.cc:5:22: required from here z1.cc:3:12: internal compiler error: in start_preparsed_function, at cp/decl.cc:17281 3 | auto a =3D [] (auto x) static { return x; }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x8f97a4 start_preparsed_function(tree_node*, tree_node*, int) ../../gcc/cp/decl.cc:17280 0x9740a4 start_lambda_function(tree_node*, tree_node*) ../../gcc/cp/lambda.cc:1671 0xac5400 tsubst_lambda_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:20056 0xa8bc86 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:21604 0xa94330 tsubst_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:19764 0xa9b00e tsubst_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:18711 0xa9b00e tsubst_init ../../gcc/cp/pt.cc:17007 0xa972ae tsubst_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:18910 0xa9241e tsubst_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:18725 0xa9127f tsubst_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:19105 0xa9d6c6 tsubst_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:18711 0xa9d6c6 instantiate_body ../../gcc/cp/pt.cc:26702 0xa9ec21 instantiate_decl(tree_node*, bool, bool) ../../gcc/cp/pt.cc:26992 0xadc5db instantiate_pending_templates(int) ../../gcc/cp/pt.cc:27070 0x939c39 c_parse_final_cleanups() ../../gcc/cp/decl2.cc:4953 0xbf0ac0 c_common_parse_file() ../../gcc/c-family/c-opts.cc:1266=