================
@@ -8462,6 +8466,18 @@ bool OpenMPIterationSpaceChecker::checkAndSetInit(Stmt 
*S, bool EmitDiags) {
     }
   }
 
+  // Helper lambda to check if a loop variable is already used in an outer
+  // loop.
+  auto CheckLoopVarReuse = [&](ValueDecl *LoopVar, SourceLocation Loc) -> bool 
{
----------------
zahiraam wrote:

Yes. Added `test_ref` to the test.

https://github.com/llvm/llvm-project/pull/203252
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to