Skip to content

Commit fe2604e

Browse files
Tweaked the check
1 parent 6d15b2d commit fe2604e

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
@@ -914,7 +914,7 @@ static void CheckExplicitDataArg(const characteristics::DummyDataObject &dummy,
914914
dummyName);
915915
}
916916
// INTENT(OUT) and INTENT(IN OUT) cases are caught elsewhere
917-
} else {
917+
} else if (!actualIsAllocatable && !dummy.ignoreTKR.test(common::IgnoreTKR::Pointer)) {
918918
messages.Say(
919919
"ALLOCATABLE %s must be associated with an ALLOCATABLE actual argument"_err_en_US,
920920
dummyName);

0 commit comments

Comments
 (0)