================
@@ -19398,6 +19398,18 @@ static bool isVariableCapturable(CapturingScopeInfo 
*CSI, ValueDecl *Var,
   }
 
   if (isa<BindingDecl>(Var)) {
+    if (auto *RSI = dyn_cast<CapturedRegionScopeInfo>(CSI)) {
+      if (RSI->CapRegionKind == CR_OpenMP) {
+        if (Diagnose && S.getLangOpts().CPlusPlus) {
+          S.Diag(Loc, S.LangOpts.CPlusPlus20
----------------
alexey-bataev wrote:

Add a check for tuple-like bindings here to fire it as early as possible with 
an early false return?

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