Skip to content

Commit 6d15b2d

Browse files
Allow allocatable/pointer association if ignore_tkr(p) is given
1 parent 9994293 commit 6d15b2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Semantics/check-call.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ static void CheckExplicitDataArg(const characteristics::DummyDataObject &dummy,
929929
dummy, actual, *scope,
930930
/*isAssumedRank=*/dummyIsAssumedRank, actualIsPointer);
931931
}
932-
} else if (!actualIsPointer) {
932+
} else if (!actualIsPointer && !dummy.ignoreTKR.test(common::IgnoreTKR::Pointer)) {
933933
messages.Say(
934934
"Actual argument associated with POINTER %s must also be POINTER unless INTENT(IN)"_err_en_US,
935935
dummyName);

0 commit comments

Comments
 (0)