Implement P0135R1, Guaranteed copy elision.
authorJason Merrill <jason@redhat.com>
Wed, 5 Oct 2016 22:59:02 +0000 (18:59 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 5 Oct 2016 22:59:02 +0000 (18:59 -0400)
commitbf9b09fbe23d4efb07eec21bbb3f73f1a075cb2b
tree5a876d8698a058b630252e34bb1ce6e5df218eed
parent5794b9f622dce668aa92ebabdf26abd0e799c665
Implement P0135R1, Guaranteed copy elision.

* cvt.c (ocp_convert): Don't re-copy a TARGET_EXPR in C++17.

From-SVN: r240820
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/testsuite/g++.dg/cpp1z/elide1.C [new file with mode: 0644]