2 // { dg-do compile { target c++11 } }
4 template <class T> T&& move (T&);
8 Dest( Dest && ) = default;
9 Dest( Dest const & ) = delete;
14 operator Dest () && { return move( val ); }
15 operator Dest const & () const & { return val; }
20 Dest d(move(x)); // { dg-error "ambiguous" }