summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/ptrmem14.C
blob: 30eb1ebcc197f410af71507e6543a87844d89b22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/15875

struct A
{
  void foo();
};

template<int> void bar()
{
  typedef void (A::*fptr)();
  fptr ptr = &A::foo;
}