1// PR c++/51370
2
3struct A
4{
5  template<typename> void foo() {}
6};
7
8template<void (A::*)()> struct B {};
9
10template<int> struct C
11{
12  B<&A::foo<int int> > b; // { dg-error "declaration|type" }
13};
14
15C<0> c;
16
17// { dg-prune-output "could not convert" }
18