Add NEWS entries for lambda/capture-list functionality

This commit is contained in:
Jon Siwek 2021-01-11 16:29:39 -08:00
parent 0a7e5e67a2
commit c166288248
2 changed files with 14 additions and 0 deletions

View file

@ -4429,6 +4429,7 @@ void LambdaExpr::CheckCaptures()
{
if ( outer_ids.size() > 0 )
{
// TODO: Remove in v5.1: these deprecated closure semantics
reporter->Warning("use of outer identifiers in lambdas without [] captures is deprecated: %s%s",
outer_ids.size() > 1 ? "e.g., " : "",
outer_ids[0]->Name());