[flang-commits] [flang] [flang][OpenMP] Fix crash on standalone ordered with depend(source|sink:) (PR #200193)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Thu May 28 09:02:22 PDT 2026


kparzysz wrote:

> Note: at versions below 4.5 the construct is technically invalid, but flang's semantics accepts it silently. Making semantics emit a "requires OpenMP 4.5" error/warning is probably a good idea.

All versions prior to 4.5 are treated the same as 4.5.  The only reason we even allow 3.1 as a version is that we consider it the latest for which the implementation is complete.  For any later version we print a warning that the implementation is not complete.  We also allow 4.0 as a version only because it was between 3.1 and 4.5, which are both allowed.

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


More information about the flang-commits mailing list