blob: 127bd26b95305213d119d41bd658dba0074e1f43 [file] [log] [blame]
// PR c++/51927
// { dg-do compile { target c++11 } }
struct function
{
template<typename Functor>
function(Functor);
};
struct testee
{
function l1 = []() { };
function l2 = [=]() { l1; }; // { dg-warning "implicit capture" "" { target c++2a } }
};