[clang] [clang-tools-extra] [llvm] [clang] WIP: Improved Context Declaration tracking (PR #107942)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 10 08:04:48 PDT 2024
================
@@ -19000,7 +19056,7 @@ bool Sema::tryCaptureVariable(
Explicit = false;
FunctionScopesIndex--;
if (IsInScopeDeclarationContext)
- DC = ParentDC;
+ DC = skipRequiresBody(ParentDC);
----------------
zyn0217 wrote:
Hmm, do you have a test for it? e.g. the requires expression contains a lambda that contains another requires expression which would cause a crash for now.
https://github.com/llvm/llvm-project/pull/107942
More information about the cfe-commits
mailing list