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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits