blob: 3fc58089319355f394b68423018c251372fbc82b [file] [log] [blame]
// PR c++/87530
// { dg-do compile { target c++11 } }
struct Base { };
template<typename T>
struct A : Base
{
A();
A(Base&&);
};
A<int> foo()
{
A<double> v;
return v; // { dg-error "cannot bind rvalue reference" "" { target c++17_down } }
}