HomePhabricator

[flang] Fix implicit declarations in statement functions

Authored by tskeith on Jul 26 2020, 12:13 PM.

Description

[flang] Fix implicit declarations in statement functions

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.

Differential Revision: https://reviews.llvm.org/D84588

Details

Committed
tskeithJul 26 2020, 12:13 PM
Differential Revision
D84588: [flang] Fix implicit declarations in statement functions
Parents
rG3bbf3e026d3c: Replace comment by private method; NFC.
Branches
Unknown
Tags
Unknown