From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 638FC3893655; Tue, 27 Apr 2021 17:12:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 638FC3893655 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvMTAwMjkxXSBbOC85LzEwLzExLzEyIFJlZ3Jlc3Np?= =?UTF-8?B?b25dIGludGVybmFsIGNvbXBpbGVyIGVycm9yOiB0cnlpbmcgdG8gY2FwdHVy?= =?UTF-8?B?ZSDigJh0aGlz4oCZIGluIGluc3RhbnRpYXRpb24gb2YgZ2VuZXJpYyBsYW1i?= =?UTF-8?B?ZGE=?= Date: Tue, 27 Apr 2021 17:12:22 +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: 11.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority target_milestone keywords short_desc cc 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 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: Tue, 27 Apr 2021 17:12:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100291 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Target Milestone|--- |8.5 Keywords| |ice-on-invalid-code Summary|internal compiler error: |[8/9/10/11/12 Regression] |trying to capture =E2=80=98this=E2=80=99 in |internal c= ompiler error: |instantiation of generic |trying to capture =E2=80= =98this=E2=80=99 in |lambda |instantiation of generic | |lambda CC| |nathan at gcc dot gnu.org --- Comment #1 from Marek Polacek --- I think this is ICE-on-invalid. Started with r245065: /home/mpolacek/w.C:119:57: internal compiler error: in finish_member_declaration, at cp/semantics.c:2969 [&](auto, auto cmp) { SingleStepper::time(cmp.state); }); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 0x9ac65b finish_member_declaration(tree_node*) ../../gcc/cp/semantics.c:2966 0xa52ce3 add_capture(tree_node*, tree_node*, tree_node*, bool, bool) ../../gcc/cp/lambda.c:600 0xa53090 add_default_capture(tree_node*, tree_node*, tree_node*) ../../gcc/cp/lambda.c:669 0xa538dd lambda_expr_this_capture(tree_node*, bool) ../../gcc/cp/lambda.c:760 0xa53ca1 maybe_resolve_dummy(tree_node*, bool) ../../gcc/cp/lambda.c:827 0x787891 build_new_method_call_1 ../../gcc/cp/call.c:8760 0x787f30 build_new_method_call(tree_node*, tree_node*, vec**, tree_node*, int, tree_node**, int) ../../gcc/cp/call.c:8870 0x83ef22 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) ../../gcc/cp/pt.c:17279 0x83a881 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:16401 0x834e7e tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:15669 0x8369b0 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:15879 0x8369b0 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:15879 0x858968 instantiate_decl(tree_node*, int, bool) ../../gcc/cp/pt.c:22817 0x8c2790 maybe_instantiate_decl ../../gcc/cp/decl2.c:5008 0x8c3060 mark_used(tree_node*, int) ../../gcc/cp/decl2.c:5107 0x784968 build_over_call ../../gcc/cp/call.c:8088 0x77593c build_op_call_1 ../../gcc/cp/call.c:4518 0x775acc build_op_call(tree_node*, vec**, int) ../../gcc/cp/call.c:4544 0x9aa173 finish_call_expr(tree_node*, vec**, b= ool, bool, int) ../../gcc/cp/semantics.c:2458 0x83ef56 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) ../../gcc/cp/pt.c:17286=