* g++.dg/overload/ref-conv1.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179015
138bc75d-0d04-0410-961f-
82ee72b054a4
+2011-09-20 Jason Merrill <jason@redhat.com>
+
+ PR c++/50442
+ * g++.dg/overload/ref-conv1.C: New.
+
2011-09-20 Roberto Agostino Vitillo <ravitillo@lbl.gov>
* g++.dg/other/final1.C: new test
--- /dev/null
+// PR c++/50442
+
+template <typename T> struct MoveRef { operator T& () {} };
+template <typename T> MoveRef <T> Move(T&) {}
+struct Thing {};
+Thing foo(const Thing* p) { return Thing(Move(*p)); }