1// PR c++/25369
2// { dg-do link }
3
4template <typename> struct A
5{
6  void foo() {}
7};
8
9void bar(void (A<int>::*)()) {}
10
11template <int> void baz()
12{
13  bar(&A<int>::foo);
14}
15
16int main()
17{
18  baz<0>();
19  return 0;
20}
21