1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// PR c++/85215 // { dg-do compile { target c++11 } } template <typename _Tp> struct vector { vector(vector &&) noexcept; }; template <typename T> struct any_container { operator vector<T> &&(); }; void f (any_container<int> c) { vector<int> shape (c); }