https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71913
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Fri Jul 22 03:51:07 2016 New Revision: 238628 URL: https://gcc.gnu.org/viewcvs?rev=238628&root=gcc&view=rev Log: PR c++/71913 - missing copy elision with new. * call.c (unsafe_copy_elision_p): It's OK to elide when initializing an unknown object. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/init/elide5.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/call.c