[PATCH] D53595: [C++17] Reject shadowing of capture by parameter in lambda

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 23 15:27:04 PDT 2018


rsmith added a comment.

For what it's worth, I think the language rule here is wrong, and we should instead be injecting the simple-captures into the lambda's function scope: http://lists.isocpp.org/core/2018/10/5145.php
But this appears to be a correct implementation of the rule as written, so let's go with it for now.


Repository:
  rC Clang

https://reviews.llvm.org/D53595





More information about the cfe-commits mailing list