PR c++/71913 - missing copy elision with new.
authorJason Merrill <jason@redhat.com>
Fri, 22 Jul 2016 03:45:37 +0000 (23:45 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 22 Jul 2016 03:45:37 +0000 (23:45 -0400)
commita93f3513c2c1fef4541306f24597f1fc154548b3
tree27ca6255ab8e5023a9107be93aafb36e5fce54a0
parentd5ec842cde69dedaf9a447d7d7a00735c9b4da40
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: r238621
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/init/elide5.C [new file with mode: 0644]