This is an archive of the discontinued LLVM Phabricator instance.

[flang] Allow non-definable actual arguments to volatile/asynchronous dummy arguments
ClosedPublic

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

Details

Summary

Semantic checking for calls was requiring an actual argument that corresponds
to an ASYNCHRONOUS or VOLATILE dummy argument to be definable, but this is not
a constraint or requirement in the standard and doesn't even make sense
as a warning; these two attributes are "scopable" in the context of BLOCK
constructs. Remove the checks and adjust the tests.

Diff Detail

Event Timeline

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