1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 namespace PR8598 {
4 template<class T> struct identity { typedef T type; };
5
6 template<class T, class C>
7 void f(T C::*, typename identity<T>::type*){}
8
9 struct X { void f() {}; };
10
11 void g() { (f)(&X::f, 0); }
12 }
13