This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix implicit declarations in statement functions
ClosedPublic

Authored by tskeith on Jul 25 2020, 8:23 AM.

Details

Summary

If a symbol (that is not a dummy argument) is implicitly declared inside
a statement function, don't create it in the statement function's scope.
Instead, treat statement functions like blocks when finding the inclusive
scope and create the symbol there.

Add a new flag, StmtFunction, to symbols that represent statement functions.

Diff Detail

Event Timeline

tskeith created this revision.Jul 25 2020, 8:23 AM
Herald added a project: Restricted Project. · View Herald Transcript
sscalpone accepted this revision.Jul 25 2020, 10:58 AM
sscalpone added a subscriber: sscalpone.

Looks good, Tim. The fcvs tests fm311 passes with this change.

This revision is now accepted and ready to land.Jul 25 2020, 10:58 AM
This revision was automatically updated to reflect the committed changes.