[flang-commits] [flang] [flang][OpenMP] Support ALLOCATABLE list items in LINEAR (PR #228827)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Mon Oct 12 09:01:37 PDT 2026
================
@@ -321,6 +341,12 @@ void DataSharingProcessor::collectSymbolsForPrivatization() {
} else {
collectOmpObjectListSymbol(objects, explicitlyPrivatizedSymbols);
}
+ } else if (const auto *linearClause =
+ std::get_if<omp::clause::Linear>(&clause.u)) {
+ // Allocatable linear items need a real private copy.
----------------
tblah wrote:
nit: please could you expand this comment with more context so that somebody who hasn't read this PR can understand that this is intended to create the omp.private declarations
Also please check if `useDelayedPrivatization == false`. If so it is okay to just generate a `TODO()` message. We do not intend to support `useDelayedPrivatization == false` in the future but it would be better if this failed gracefully if somebody uses the unsupported option.
https://github.com/llvm/llvm-project/pull/228827
More information about the flang-commits
mailing list