aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/ptrmem16.C
blob: caf5dd0f227e3e08994c53bf9d90071eafb8c856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// PR c++/25369
// { dg-do link }

template <typename> struct A 
{
  void foo() {}
};

void bar(void (A<int>::*)()) {}

template <int> void baz()
{
  bar(&A<int>::foo);
}

int main()
{
  baz<0>();
  return 0;
}