1 2 3 4 5 6 7 8 9 10 11
// PR c++/57092 // { dg-do compile { target c++11 } } template <void (*F)(int)> class B { decltype(F) v; }; void foo(int) {} B<foo> o;