1 // { dg-do compile { target c++11 } } 2 3 struct A 4 { 5 void f(); 6 }; 7 8 using ftype = decltype(&A::f); 9 10 template <class T> f()11 bool f() 12 { 13 ftype p = ftype{}; 14 return p; 15 } 16 main()17 int main() 18 { 19 f<int>(); 20 } 21