// PR c++/54506 // { dg-do compile { target c++11 } } template struct A { A() {} A(A const volatile &&) = delete; A &operator =(A const volatile &&) = delete; template A(A &&) {} template A &operator =(A &&) { return *this; } }; struct B { A a; B() = default; }; int main() { B b = B(); b = B(); }