This is an archive of the discontinued LLVM Phabricator instance.

[flang] Allow NULL() actual argument for procedure pointer dummy argument with unspecified intent
ClosedPublic

Authored by klausler on Aug 25 2022, 10:57 AM.

Details

Summary

A NULL() pointer is a valid actual argument for a procedure pointer dummy
argument whose intent is INTENT(IN); it should also be acceptable for a
procedure pointer dummy argument with unspecified intent.

Also make it possible to discern null object pointers from null procedure
pointers, so that an attempt to use one in place of the other in a context
where the distinction matters will still elicit an error.

Diff Detail

Event Timeline

klausler created this revision.Aug 25 2022, 10:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2022, 10:57 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 25 2022, 10:57 AM
jeanPerier accepted this revision.Aug 25 2022, 2:33 PM
This revision is now accepted and ready to land.Aug 25 2022, 2:33 PM