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