================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to