This is an archive of the discontinued LLVM Phabricator instance.

[flang] Associate entities are variables
ClosedPublic

Authored by klausler on Feb 11 2023, 5:20 PM.

Details

Summary

A more precise reading of the standard for associate entities, like "x"
in ASSOCIATE(x => selector), shows that the utility predicates used for
determining their status as variables should treat them as variables
(not necessarily definable), whatever the selector is. Currently
the cases where the selector is an expression or a designator with a
vector subscript are not properly considered to be variables.
(See Fortran 2018, 11.1.3.3 paragraph 5.)

Diff Detail

Event Timeline

klausler created this revision.Feb 11 2023, 5:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 11 2023, 5:20 PM
klausler requested review of this revision.Feb 11 2023, 5:20 PM
This revision is now accepted and ready to land.Feb 11 2023, 9:28 PM
This revision was automatically updated to reflect the committed changes.