// PR c++/80452 // { dg-do compile { target c++11 } } template struct check { }; template struct check; struct A { A() = default; A(A&&) = default; A(const A&) = delete; }; template struct B { template B(U&&) { check u; } }; B f() { A a; return a; }