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