]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/71913 - missing copy elision with new.
authorJason Merrill <jason@redhat.com>
Fri, 22 Jul 2016 03:41:44 +0000 (23:41 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 22 Jul 2016 03:41:44 +0000 (23:41 -0400)
commit46bd94f9fd8c396461d2433df72beb8f6762e528
tree82f506bac8f6fa98dee15439abae75085a908099
parent96851a373f2c8487c5f4679b13a500fecedcdf1c
PR c++/71913 - missing copy elision with new.

* call.c (unsafe_copy_elision_p): It's OK to elide when
initializing an unknown object.

From-SVN: r238619
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/init/elide5.C [new file with mode: 0644]