https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105265
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Known to fail| |10.1.0, 10.3.0, 11.1.0,
| |11.2.0, 12.0, 9.3.0
Status|UNCONFIRMED |NEW
Keywords| |wrong-code
Known to work| |8.5.0, 9.2.0
Last reconfirmed| |2022-04-13
CC| |jason at gcc dot gnu.org
Target Milestone|--- |9.5
Summary|temporary object not |[9/10/11/12 Regression]
|destructed causing memory |temporary object not
|leaks |destructed causing memory
| |leaks
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Started with r279236
PR c++/57082 - new X{} and private destructor.
build_new_1 already passes tf_no_cleanup to build_value_init, but in this
testcase we end up calling build_value_init by way of
build_special_member_call, so we need to pass it to that function as well.
* init.c (build_new_1): Also pass tf_no_cleanup to
build_special_member_call.
Backported to gcc-9 as r279335