From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 261023858D33; Tue, 14 Feb 2023 19:41:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 261023858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676403687; bh=lnxHE2f7TULVDvhbcgPrTCWwXJro+zTRJJ4pWTPZZow=; h=From:To:Subject:Date:From; b=k3WQmo6/Xd7OYZn5XaydkdTGUHI/RJZEk0vpZp10QnCdUAv2OGIf5X1OvUfzsqCjW YSDTBBDKhWS24Q1E/ZolXtxVaw8qmuye9UdmqVyljFXYoR/nEnCYGXmZzDh+f6XAgL 1xFYLeR80ZXqN50uUNIvPmaepHXna+4gKHxdyzrQ= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108795] New: [10/11/12/13 Regression] ICE in prep_operand, at cp/call.cc:6325 Date: Tue, 14 Feb 2023 19:41:26 +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=3D108795 Bug ID: 108795 Summary: [10/11/12/13 Regression] ICE in prep_operand, at cp/call.cc:6325 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 with r7 : $ cat z1.cc template T g (T x) { class C { __attribute__((transaction_safe)) ~C(); }; C::~C(); } void f () { g (5); } $ gcc-13-20230212 -c z1.cc z1.cc: In instantiation of 'T g(T) [with T =3D int]': z1.cc:11:5: required from here z1.cc:7:6: internal compiler error: Segmentation fault 7 | C::~C(); | ~~~^~ 0xeb71af crash_signal ../../gcc/toplev.cc:314 0x7b242d prep_operand ../../gcc/cp/call.cc:6325 0x7c8d67 build_new_op(op_location_t const&, tree_code, int, tree_node*, tree_node*, tree_node*, tree_node*, tree_node**, int) ../../gcc/cp/call.cc:6956 0x985d3d build_x_unary_op(unsigned int, tree_code, cp_expr, tree_node*, int) ../../gcc/cp/typeck.cc:6820 0x9237fb tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:20496 0x924e34 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:20910 0x928e38 tsubst_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:19769 0x9279d1 tsubst_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:18758 0x927cce tsubst_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:18730 0x928678 tsubst_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:19110 0x92b970 tsubst_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:26707 0x92b970 instantiate_body ../../gcc/cp/pt.cc:26707 0x92c9df instantiate_decl(tree_node*, bool, bool) ../../gcc/cp/pt.cc:26997 0x9461db instantiate_pending_templates(int) ../../gcc/cp/pt.cc:27075 0x848f6a c_parse_final_cleanups() ../../gcc/cp/decl2.cc:4953 0x9f5be0 c_common_parse_file() ../../gcc/c-family/c-opts.cc:1266=