// PR c++/84768 // { dg-do compile { target c++17 } } template struct A {}; template struct B { template B(A); // { dg-error "declared" } }; B b = A();