[flang-commits] [flang] [flang][openmp] Add semantic checks in THREADPRIVATE/DECLARE TARGET (PR #209084)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Mon Jul 20 06:01:47 PDT 2026


================
@@ -204,3 +204,42 @@ subroutine func5()
   !ERROR: A variable in a DECLARE TARGET directive cannot be an element of a common block
   !$omp declare target link (a5_link)
 end
+
+subroutine func6
+    common /foo/ l
+    integer l
+    integer k(l)
----------------
kparzysz wrote:

Nitpick: you use `::` consistently, except for a few cases like this.

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


More information about the flang-commits mailing list