summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/ptrmem6.C
blob: a355cfe893991d87be9baa37c64fcf68f9a4971d (plain)
1
2
3
4
5
6
7
8
9
10
struct S {};

void g(int S::**);

template <typename T>
void f (int T::* volatile *p) {
  g(p); // { dg-error "conversion" }
}

template void f(int S::* volatile *); // { dg-message "instantiated" }