[flang-commits] [flang] [flang][OpenMP] Fix test expectations in linear-clause01.f90 (PR #175707)

via flang-commits flang-commits at lists.llvm.org
Mon Jan 12 22:25:56 PST 2026


================
@@ -7,11 +7,8 @@
 ! Case 1
 subroutine linear_clause_01(arg)
     integer, intent(in) :: arg(:)
-!    !ERROR: A modifier may not be specified in a LINEAR clause on the DO directive
-!    !ERROR: List item 'arg' in LINEAR clause must be a scalar variable
----------------
NimishMishra wrote:

Please correct me if I am missing something here, but isn't `arg` an assumed array here? So why should the semantic error on LINEAR clause not be emitted? 

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


More information about the flang-commits mailing list