This is an archive of the discontinued LLVM Phabricator instance.

[flang] Avoid bogus error for specification expression
ClosedPublic

Authored by klausler on Feb 11 2022, 10:51 AM.

Details

Summary

When a scope's symbol has characteriztics whose specification
expressions depend on other non-constant symbols in the same scope,
f18 rightfully emits an error. However, in the case of usage in
specification expressions involving host association, the program is not
invalid. This can arise, for example, in the case of an internal
function whose result's attributes use host-associated variables.

Diff Detail

Event Timeline

klausler created this revision.Feb 11 2022, 10:51 AM
klausler requested review of this revision.Feb 11 2022, 10:51 AM
PeteSteinfeld accepted this revision.Feb 11 2022, 12:37 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Feb 11 2022, 12:37 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 11 2022, 3:57 PM