From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BD9E63858D28; Wed, 7 Sep 2022 17:19:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD9E63858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662571175; bh=7cCmfNChFK/wrWKBuYRw0JqgkFTMb5Yx9DFIWhpIB+c=; h=From:To:Subject:Date:From; b=oUAoV/LlHn9lQmaLQ7xVAgkwUjuRFwZCS1XHtPw+L7gjPCfWBIVaSnE9gV3UF6ytE tuNTspva37bawdZgByNSlhTaPeGohSuyn0DZDVmAbeAjd7bHB/IC//DET+Ly5FCL2Y R7720pmIXL+yPcL70dKwjNT9FUKvUj+xc4LSn5rQ= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106876] New: [13 Regression] ICE in extract_insn, at recog.cc:2791 Date: Wed, 07 Sep 2022 17:19:35 +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=3D106876 Bug ID: 106876 Summary: [13 Regression] ICE in extract_insn, at recog.cc:2791 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 20220508 and 20220515, with file g++.dg/lookup/friend23.C : $ cat friend23.C template struct base { friend void bar(Derived& d) { d.bar(); // access in inline friend of friend, ok? } }; class derived : base { friend class base; void bar() {} }; int main() { derived d; bar(d); } $ g++-13-20220904 -c friend23.C -mforce-indirect-call -fPIC -fprofile-gener= ate friend23.C: In member function 'void derived::bar()': friend23.C:10:15: error: unrecognizable insn: 10 | void bar() {} | ^ (call_insn/u 6 3 7 2 (parallel [ (set (reg:DI 0 ax) (call:DI (mem:QI (symbol_ref:DI ("__tls_get_addr")) [0 S1 = A8]) (const_int 0 [0]))) (unspec:DI [ (symbol_ref:DI ("__gcov_indirect_call") [flags 0x50] ) (reg/f:DI 7 sp) ] UNSPEC_TLS_GD) ]) -1 (expr_list:REG_EH_REGION (const_int -2147483648 [0xffffffff80000000]) (nil)) (nil)) during RTL pass: vregs friend23.C:10:15: internal compiler error: in extract_insn, at recog.cc:2791 0x6f0204 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ../../gcc/rtl-error.cc:108 0x6f0223 _fatal_insn_not_found(rtx_def const*, char const*, int, char const= *) ../../gcc/rtl-error.cc:116 0x110e617 extract_insn(rtx_insn*) ../../gcc/recog.cc:2791 0xe07089 instantiate_virtual_regs_in_insn ../../gcc/function.cc:1660 0xe07089 instantiate_virtual_regs ../../gcc/function.cc:1985 0xe07089 execute ../../gcc/function.cc:2034=