rjmccall added a comment.
Richard should probably weigh in about whether we should be recording potential
captures at *all* capturing scopes. But at the very least, I think you have a
bug here where the variable is declared outside of the block but within the
lambda; in that case, it is definitely not a potential capture of the lambda.
cfe-commits mailing list