// PRMS Id: 4656 // Testcase for use of member pointers in template resolution template class A { public: A() : a(1) {} T a; }; template int foo (T A::*p) { return 0; } int main() { int A::*pm = &A::a; // gets bogus error - failed temp resolution foo (pm); return 0; }