aboutsummaryrefslogtreecommitdiff
path: root/gcc/ctfout.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2022-04-13 13:23:08 -0400
committerJason Merrill <jason@redhat.com>2022-04-13 20:22:57 -0400
commitad8161e6d7b26d690d90069ae9a129e7ac36892a (patch)
tree8397db198a89d837de235775f3b6223a3fd3a32b /gcc/ctfout.cc
parent019d6d4149ee97d55ce9efe4e5e470d38130cdeb (diff)
downloadgcc-ad8161e6d7b26d690d90069ae9a129e7ac36892a.zip
gcc-ad8161e6d7b26d690d90069ae9a129e7ac36892a.tar.gz
gcc-ad8161e6d7b26d690d90069ae9a129e7ac36892a.tar.bz2
c++: NRV and ref-extended temps [PR101442]
This issue goes back to r83221, where the cleanup for extended ref temps changed from being unconditional to being tied to the declaration they formed part of the initializer for. The named return value optimization changes the cleanup for the NRV variable to only run on the EH path; we don't want that change to affect temporary cleanups. The perform_member_init change isn't necessary (there 'decl' is a COMPONENT_REF), it's just for consistency. PR c++/101442 gcc/cp/ChangeLog: * decl.cc (cp_finish_decl): Don't pass decl to push_cleanup. * init.cc (perform_member_init): Likewise. * semantics.cc (push_cleanup): Adjust comment. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/initlist-nrv1.C: New test.
Diffstat (limited to 'gcc/ctfout.cc')
0 files changed, 0 insertions, 0 deletions