[clang] [OpenMP] Support capturing structured bindings in OpenMP regions. (PR #190832)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 10 07:53:24 PDT 2026
================
@@ -19374,6 +19374,8 @@ static bool isVariableCapturable(CapturingScopeInfo *CSI, ValueDecl *Var,
}
if (isa<BindingDecl>(Var)) {
+ if (Var->getDeclName() && !Var->isImplicit() && !IsBlock)
+ return true;
----------------
alexey-bataev wrote:
I think we need some extra check for the OpenMP context here
https://github.com/llvm/llvm-project/pull/190832
More information about the cfe-commits
mailing list