[flang-commits] [flang] [flang][OpenMP] Remember decision of allowing past/future clause (PR #227419)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Thu Oct 1 13:51:39 PDT 2026


kparzysz wrote:

The reason is that the semantic overrides are set for the entire compilation (they are stored in SemanticsContext, which is shared between all program units).

This may be somewhat unexpected, but is probably better than making it per-program-unit. Doing so would require adding a program unit parameter to the `IsClauseAllowedOnDirective` function, which would be rather bizarre.

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


More information about the flang-commits mailing list