re PR c++/50442 (Constructing T from implicit conversion to T& ambiguous in C++0x mode, not C++98)

PR c++/50442
	* g++.dg/overload/ref-conv1.C: New.

From-SVN: r179015
This commit is contained in:
Jason Merrill 2011-09-20 15:25:32 -04:00 committed by Jason Merrill
parent 62e3d9e6f8
commit c067f4dbc0
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -0,0 +1,6 @@
// 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)); }