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:
parent
62e3d9e6f8
commit
c067f4dbc0
@ -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
|
||||
|
6
gcc/testsuite/g++.dg/overload/ref-conv1.C
Normal file
6
gcc/testsuite/g++.dg/overload/ref-conv1.C
Normal 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)); }
|
Loading…
Reference in New Issue
Block a user