[Bug c++/105265] [9/10/11 Regression] temporary object not destructed causing memory leaks

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 13 15:25:00 GMT 2022


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

--- Comment #7 from Patrick Palka <ppalka at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #6)
> But not fixed on gcc-11 by the r11-8715 backport for PR100838, suggesting
> there was an earlier change on trunk that affects it.

Perhaps that's because of (from the r11-8715 commit message):

  For GCC 11, limit the changes to -fno-elide-constructors


More information about the Gcc-bugs mailing list