================
@@ -19514,6 +19516,12 @@ static bool captureInLambda(LambdaScopeInfo *LSI, 
ValueDecl *Var,
     ByRef = (LSI->ImpCaptureStyle == LambdaScopeInfo::ImpCap_LambdaByref);
   }
 
+  if (auto *BD = dyn_cast<BindingDecl>(Var)) {
----------------
alexey-bataev wrote:

Same, I think need some special check of the immediate 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