public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96721] New: [11 Regression] pseudo-destructor calls on pointers since r11-2238
@ 2020-08-20  9:22 jakub at gcc dot gnu.org
  2020-08-20  9:22 ` [Bug c++/96721] " jakub at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-08-20  9:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96721

            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-destructor
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=96717
[Bug 96717] -flifetime-dse=2 breaks webkit-gtk-2.28.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-09-17 17:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-20  9:22 [Bug c++/96721] New: [11 Regression] pseudo-destructor calls on pointers since r11-2238 jakub at gcc dot gnu.org
2020-08-20  9:22 ` [Bug c++/96721] " jakub at gcc dot gnu.org
2020-08-20  9:49 ` jakub at gcc dot gnu.org
2020-08-20  9:49 ` jakub at gcc dot gnu.org
2020-08-20 10:08 ` jakub at gcc dot gnu.org
2020-08-24 11:27 ` jakub at gcc dot gnu.org
2020-08-25  5:20 ` cvs-commit at gcc dot gnu.org
2020-08-25 11:17 ` rguenth at gcc dot gnu.org
2020-09-17 17:58 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).