Skip to content

Commit d7922de

Browse files
committed
Rebase and addressed review comment by using Ultimate symbol.
1 parent 7a864d4 commit d7922de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Semantics/check-omp-structure.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1727,7 +1727,7 @@ void OmpStructureChecker::Enter(const parser::OpenMPDeclarativeAllocate &x) {
17271727
"argument"_err_en_US,
17281728
source.ToString());
17291729
}
1730-
if (symbol->has<AssocEntityDetails>()) {
1730+
if (symbol->GetUltimate().has<AssocEntityDetails>()) {
17311731
context_.Say(source,
17321732
"List item '%s' in ALLOCATE directive must not be an associate "
17331733
"name"_err_en_US,

0 commit comments

Comments
 (0)