GCC generates warnings about these, although the variable being shadowed is not captured by the lambda.