[flang-commits] [flang] [flang][OpenMP][RFC] Add support for COPYPRIVATE (PR #73128)
via flang-commits
flang-commits at lists.llvm.org
Thu Nov 23 06:40:25 PST 2023
================
@@ -2368,7 +2368,8 @@ void OmpAttributeVisitor::CheckDataCopyingClause(
// either 'private' or 'threadprivate' in enclosing context.
if (!checkSymbol->test(Symbol::Flag::OmpThreadprivate) &&
!(HasSymbolInEnclosingScope(symbol, currScope()) &&
- symbol.test(Symbol::Flag::OmpPrivate))) {
+ (symbol.test(Symbol::Flag::OmpPrivate) ||
+ symbol.test(Symbol::Flag::OmpFirstPrivate)))) {
----------------
NimishMishra wrote:
Two points here:
1. Does this require a change to the message here? It says PRIVATE or THREADPRIVATE.
2. Can we add a test for this change in semantic check?
https://github.com/llvm/llvm-project/pull/73128
More information about the flang-commits
mailing list