This is an archive of the discontinued LLVM Phabricator instance.

[flang] Correct IsHostAssociated() to be true for BLOCK constructs
ClosedPublic

Authored by klausler on Jul 22 2022, 12:25 PM.

Details

Summary

The predicate IsHostAssocited() was implemented in a way that would
return true only for cases of host association into a module or inner
subprogram. Technically, the use of a name in a BLOCK construct
that is not declared therein is considered in the Fortran standard
to also be a form of host association, and this matters when doing
error checking on DATA statements.

Diff Detail

Event Timeline

klausler created this revision.Jul 22 2022, 12:25 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jul 22 2022, 12:25 PM
PeteSteinfeld accepted this revision.Jul 22 2022, 4:22 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jul 22 2022, 4:22 PM