[flang-commits] [flang] [llvm] [flang][OpenMP] Gate the allocate clause at OpenMP 5.0 (PR #213980)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Wed Aug 5 08:35:04 PDT 2026


kparzysz wrote:

Ideally we'd restrict the allocate clause to 5.0 and up, since that's what's in the spec.  The risk is that if clang has supported it in 4.5 for a while, there may be code out there that uses OpenMP 4.5 with the allocate clause that will break after the change.  I suspect that the likelihood of that is small though.

@alexey-bataev Do you have any thoughts about this? Some directives in OMP.td list the allocate clause without version, others list it with version 5.0. The two options are to either list it with 5.0 everywhere or without any version (and allowing it in older versions as an extension).

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


More information about the flang-commits mailing list