https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71913

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Jul 22 03:46:41 2016
New Revision: 238625

URL: https://gcc.gnu.org/viewcvs?rev=238625&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-6-branch/gcc/testsuite/g++.dg/init/elide5.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/call.c

Reply via email to