1 // PR c++/62241 2 // { dg-do compile { target c++14 } } 3 4 template<typename Signature> 5 struct function 6 { 7 template<typename Functor> functionfunction8 function(Functor) { } 9 }; 10 main()11 int main () 12 { 13 int bar = 0; 14 function<void ()> { [foo = bar] { } }; 15 } 16