From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 35C3C3851C33; Thu, 20 Aug 2020 09:22:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 35C3C3851C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597915335; bh=SULDyJuMtxmEpsz+em2kGMnFVPSPf/uyWuLfmiYdUVc=; h=From:To:Subject:Date:From; b=rE7GOA7GN4vb6b55byUq1NUYC+wFadlcSbAzoZSAowJAb1QgyEAAPO8Ez91jOWTBP 1xWrjX0KjHXq+2BegrqfVqm5pm9hTFowRu06s2XLBnDa/MJCSoJ9/30yeRizgLfXhF NiXP4kzNWcwUUG/oif5NT6+Gqruj/1hTZFj1EdBI= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96721] New: [11 Regression] pseudo-destructor calls on pointers since r11-2238 Date: Thu, 20 Aug 2020 09:22:15 +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: 11.0 X-Bugzilla-Keywords: needs-bisection, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.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 keywords bug_severity priority component assigned_to reporter cc dependson 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 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: Thu, 20 Aug 2020 09:22:15 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96721 Bug ID: 96721 Summary: [11 Regression] pseudo-destructor calls on pointers since r11-2238 Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: needs-bisection, needs-reduction Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: jakub at gcc dot gnu.org, slyfox at gcc dot gnu.org, unassigned at gcc dot gnu.org, webrown.cpp at gmail dot= com Depends on: 96717 Target Milestone: --- +++ This bug was initially created as a clone of Bug #96717 +++ In typedef int *T; void foo (T a) { if (a) return; a.~T (); } int main () { int p; foo (&p); foo (nullptr); return 0; } since r11-2238-ge443d8213864ac337c29092d4767224f280d2062 the pseudo-destruc= tor is emitted on what the pointer points to rather than on the pointer itself. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96717 [Bug 96717] -flifetime-dse=3D2 breaks webkit-gtk-2.28.4=