[Bug c++/71913] [5/6/7 Regression] Missing copy elision with operator new

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 22 03:42:00 GMT 2016


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


More information about the Gcc-bugs mailing list