// PR c++/55710 // { dg-do link { target c++11 } } template struct X { static void (*code) (); }; template void (*X::code) () = []{}; // Line 7 struct Y { void (*code) () = []{} ; // Line 10 void operator()() { code(); } }; int main () { X::code(); Y()(); }