[flang-commits] [flang] [Flang][OpenMP] Add some semantic checks for Linear clause (PR #111354)

via flang-commits flang-commits at lists.llvm.org
Tue Oct 8 22:46:13 PDT 2024


================
@@ -23,6 +23,7 @@ end subroutine requires_2
 
 subroutine declare_simd_1(a, b)
   real(8), intent(inout) :: a, b
+  !ERROR: 'a' in ALIGNED clause must be of type C_PTR, POINTER or ALLOCATABLE
----------------
NimishMishra wrote:

Do we also deal with ALIGNED clause in this PR? A similar issue is causing the Linux CI failure:

```
flang/test/Examples/omp-declarative-directive.f90:11:38: error: 'a' in ALIGNED clause must be of type C_PTR, POINTER or ALLOCATABLE
--
  | !$omp declare simd(declare_simd_1) aligned(a)
```


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


More information about the flang-commits mailing list