[all-commits] [llvm/llvm-project] 3bcab6: [flang][OpenMP][Semantics] improve semantic checks...

Tom Eccles via All-commits all-commits at lists.llvm.org
Fri Mar 21 03:59:05 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3bcab6f20ab73098f3c3e46db21bb1bccf11f782
      https://github.com/llvm/llvm-project/commit/3bcab6f20ab73098f3c3e46db21bb1bccf11f782
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2025-03-21 (Fri, 21 Mar 2025)

  Changed paths:
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/test/Semantics/OpenMP/depend01.f90

  Log Message:
  -----------
  [flang][OpenMP][Semantics] improve semantic checks for array sections (#132230)

I'm not sure why strides were not allowed in array sections: the stride
is explicitly allowed by the standard from the first version where array
sections were introduced. The limitation is that the stride must not be
negative.

Here I have added the check for a negative stride and updated the test
for a zero length section to take account of the stride.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list