[flang-commits] [flang] [flang][acc] Implement cache directive lowering (PR #174897)

Razvan Lupusoru via flang-commits flang-commits at lists.llvm.org
Fri Jan 9 08:07:31 PST 2026


================
@@ -38,6 +38,18 @@ program openacc_cache_validity
   !ERROR: Only array element or subarray are allowed in CACHE directive
   !$acc cache(/i/)
 
+  !ERROR: The CACHE directive requires at least one of the bounds in the array section subscript triplet to be specified
+  !$acc cache(a(:))
----------------
razvanlupusoru wrote:

Just wanted to note that if we find code in real applications using syntax without bounds we may need to relax the checking. That said, for now it is great you implemented this!

https://github.com/llvm/llvm-project/pull/174897


More information about the flang-commits mailing list