This is an archive of the discontinued LLVM Phabricator instance.

[flang] Allow ENTRY function result symbol usage before the ENTRY
ClosedPublic

Authored by klausler on May 6 2022, 4:25 PM.

Details

Summary

In a function, ENTRY E without an explicit RESULT() creates a
function result entity also named E that is storage associated with
the enclosing function's result. f18 was emitting an incorrect error
message if that function result E was referenced without any
declaration prior to its ENTRY statement when it should have been
implicitly declared instead.

Diff Detail

Event Timeline

klausler created this revision.May 6 2022, 4:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2022, 4:25 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.May 6 2022, 4:25 PM
PeteSteinfeld accepted this revision.May 6 2022, 4:45 PM

All builds and tests correctly and looks good.

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