[PATCH] D99134: Lambdas are not necessarily locals. This resolves DR48250.
David Stone via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 22 19:50:15 PDT 2021
davidstone added a comment.
It looks like this change was originally added 9 years ago with a commit message of
"Lambda closure types are always considered to be like "local" classes,
even if they are not within a function scope. Teach template
instantiation to treat them as such, and make sure that we have a
local instantiation scope when instantiating default arguments and
static data members."
but unfortunately, it does not include the context to explain *why* this is the case. There do not appear to be any tests that capture this, and I haven't found code that fails to compile / causes the compiled code's unit tests to fail.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99134/new/
https://reviews.llvm.org/D99134
More information about the cfe-commits
mailing list