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

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D99134: L... David Stone via Phabricator via cfe-commits
    • [PATCH] D991... David Stone via Phabricator via cfe-commits
    • [PATCH] D991... David Stone via Phabricator via cfe-commits
    • [PATCH] D991... Richard Smith - zygoloid via Phabricator via cfe-commits
    • [PATCH] D991... Richard Smith - zygoloid via Phabricator via cfe-commits

Reply via email to