From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9183C3853809; Fri, 21 Oct 2022 18:40:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9183C3853809 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666377654; bh=DWRGtj9lPEdVw0DtTLa9viR2lPiasuy456t3QxZWL20=; h=From:To:Subject:Date:From; b=qaXxEE5oi5FZK84My+2Xn4Q0VvlsoPybxuQIYj0kgL/Pg7MNNDDFhlAgME28PS7yL 2YC/dJHTOX868GfbQpOZ9fbfT6BmzfbgwCq/1zZbL8MDD/ERPEtdj732xRGpmsmQC2 /MA/pkxvWtKooB384dpxoVvgjDIYK/9sEzby+dSo= From: "justus at opentransactions dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107352] New: polymorphic class with destroying delete operator defined causes internal compiler error Date: Fri, 21 Oct 2022 18:40:51 +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: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: justus at opentransactions dot org 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 attachments.created 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=3D107352 Bug ID: 107352 Summary: polymorphic class with destroying delete operator defined causes internal compiler error Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: justus at opentransactions dot org Target Milestone: --- Created attachment 53746 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53746&action=3Dedit build errors Defining a std::destroying_delete_t operator delete for a polymorphic class causes GCC to fail with "internal compiler error: in build_if_in_charge, at cp/class.cc:229"=20 I've tested with 10.3, 11.3, and 12.2 and all of them have the same issue. = The project both builds and passes tests successfully when compiled with clang = and the problem also goes away if I remove the destroying delete operator and p= ut the code that was in that function at all the places where it would have be= en called.=