Given the following sample code: int main() { int i; auto f = [=]()mutable->int* { return &i; }; return 0; } The compiler reports "address of stack memory associated with local variable 'i' returned" for the 'i' in the lambda. That warning would be legitimate for a plain function but not for a lambda. Note that this bug appears similar to bug #16548 but it is not the same. Here, the variable is captured by value rather than by reference.