This is an archive of the discontinued LLVM Phabricator instance.

[flang] Allow implicit declaration of DATA objects in inner procedures
ClosedPublic

Authored by klausler on May 6 2022, 1:42 PM.

Details

Summary

DATA statements in inner procedures were not treating undeclared objects
as implicitly declared variables if the DATA statement appeared in a
specification part; they were treated as host-associated symbols instead.
This was incorrect. Fix DATA statement name resolution to always treat
DATA as if it had appeared in the executable part.

Diff Detail

Event Timeline

klausler created this revision.May 6 2022, 1:42 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.May 6 2022, 1:42 PM
PeteSteinfeld accepted this revision.May 6 2022, 2:48 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.May 6 2022, 2:48 PM