1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// PR c++/51265 // { dg-options -std=c++0x } struct Funny { int print(int); }; template<typename X> void c(); template<typename X, X ff> void xx() { c<decltype(ff)>(); } int main() { xx<int(Funny::*)(int), &Funny::print>(); }