// PR c++/51370 struct A { template void foo() {} }; template struct B {}; // { dg-error "declaration" } template struct C { B<&A::foo > b; // { dg-error "declaration|type" } }; C<0> c;