https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71913
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Fri Jul 22 03:41:44 2016 New Revision: 238619 URL: https://gcc.gnu.org/viewcvs?rev=238619&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-4_9-branch/gcc/testsuite/g++.dg/init/elide5.C Modified: branches/gcc-4_9-branch/gcc/cp/ChangeLog branches/gcc-4_9-branch/gcc/cp/call.c