[flang-commits] [flang] [flang][OpenMP] Implement `CheckReductionObjects` for all reduction c… (PR #118689)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Fri Dec 6 04:20:15 PST 2024


================
@@ -8,21 +8,21 @@ program omp_reduction
   integer :: k = 10
   integer :: a(10), b(10,10,10)
 
-  !ERROR: A list item that appears in a REDUCTION clause should have a contiguous storage array section.
+  !ERROR: Reference to a must be a contiguous object
   !$omp parallel do reduction(+:a(1:10:3))
   do i = 1, 10
     k = k + 1
   end do
   !$omp end parallel do
 
-  !ERROR: A list item that appears in a REDUCTION clause should have a contiguous storage array section.
+  !ERROR: Reference to b must be a contiguous object
----------------
kiranchandramohan wrote:

Should the error message emitted by `CheckIfContiguous` be improved to be more descriptive to include which clause it appears? Also should the variable name appear in quotes (`a`)?

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


More information about the flang-commits mailing list