File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2115,12 +2115,11 @@ void OmpAttributeVisitor::Post(const parser::OpenMPAllocatorsConstruct &x) {
2115
2115
static bool IsPrivatizable (const Symbol *sym) {
2116
2116
auto *misc{sym->detailsIf <MiscDetails>()};
2117
2117
return IsVariableName (*sym) && !IsProcedure (*sym) && !IsNamedConstant (*sym) &&
2118
- (!semantics::IsAssumedSizeArray (
2119
- *sym) || /* OpenMP 5.2, 5.1.1: Assumed-size arrays are shared*/
2120
- (sym->test (Symbol::Flag::CrayPointee) &&
2121
- // If CrayPointer is among the DSA list then the
2122
- // CrayPointee is Privatizable
2123
- &semantics::GetCrayPointer (*sym))) &&
2118
+ ( // OpenMP 5.2, 5.1.1: Assumed-size arrays are shared
2119
+ !semantics::IsAssumedSizeArray (*sym) ||
2120
+ // If CrayPointer is among the DSA list then the
2121
+ // CrayPointee is Privatizable
2122
+ sym->test (Symbol::Flag::CrayPointee)) &&
2124
2123
!sym->owner ().IsDerivedType () &&
2125
2124
sym->owner ().kind () != Scope::Kind::ImpliedDos &&
2126
2125
!sym->detailsIf <semantics::AssocEntityDetails>() &&
You can’t perform that action at this time.
0 commit comments