This is an archive of the discontinued LLVM Phabricator instance.

[flang][NFC] Document semantics of an ambiguous/non-portable use case
ClosedPublic

Authored by klausler on Jul 3 2023, 10:28 AM.

Details

Summary

We intentionally process NAMELIST groups in a scope after having
resolved all of the names in that scope. This means that a name
whose first appearance in a scope is in the NAMELIST group resolves
to a local object, if any, rather than to any host associated object.
The standard is unclear on this point, and there is no clear
precedent in other compilers.

This patch doesn't implement this choice -- that was done long ago --
but just documents the behavior in Extensions.md.

Diff Detail

Event Timeline

klausler created this revision.Jul 3 2023, 10:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 3 2023, 10:28 AM
klausler requested review of this revision.Jul 3 2023, 10:28 AM
vdonaldson accepted this revision.Jul 3 2023, 10:59 AM
This revision is now accepted and ready to land.Jul 3 2023, 10:59 AM
This revision was landed with ongoing or failed builds.Jul 3 2023, 11:28 AM
This revision was automatically updated to reflect the committed changes.