// PR c++/88252 // { dg-do compile { target c++17 } } template struct A { A(T&&); template A(T&&, U&&); template struct B; }; template A::A(T&&) { } template template A::A(T&&, U&&) { } template template struct A::B { B(U&&); template B(U&&, V&&); }; int i; int main() { A{i}; // { dg-error "deduction|no match|rvalue reference" } A{i, 0}; // { dg-error "deduction|no match|rvalue reference" } A{0, i}; A::B{i}; // { dg-error "deduction|no match|rvalue reference" } A::B{i, 0}; // { dg-error "deduction|no match|rvalue reference" } A::B{0, i}; }