PR c++/87150 - wrong ctor with maybe-rvalue semantics.
authorMarek Polacek <polacek@redhat.com>
Sat, 8 Sep 2018 17:36:08 +0000 (17:36 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Sat, 8 Sep 2018 17:36:08 +0000 (17:36 +0000)
commite5ba9b702f14441f43a577e9f44192c14a43cd7b
tree45b847e27dbdc2175a5265187b18b8d173e28302
parent3075affdbcb3232fe549fbeed87bd94114c14758
PR c++/87150 - wrong ctor with maybe-rvalue semantics.

* call.c (struct conversion): Update commentary.
(standard_conversion): Set rvaluedness_matches_p if LOOKUP_PREFER_RVALUE
for ck_base.

* g++.dg/cpp0x/move-return2.C: New test.

From-SVN: r264172
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/move-return2.C [new file with mode: 0644]