[all-commits] [llvm/llvm-project] 7454ac: [flang] Fix implicit declarations in statement fun...

Tim Keith via All-commits all-commits at lists.llvm.org
Sun Jul 26 12:14:12 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7454acdf3b7d064ebbf6b8027296f42f504b285a
      https://github.com/llvm/llvm-project/commit/7454acdf3b7d064ebbf6b8027296f42f504b285a
  Author: Tim Keith <tkeith at nvidia.com>
  Date:   2020-07-26 (Sun, 26 Jul 2020)

  Changed paths:
    M flang/include/flang/Semantics/scope.h
    M flang/include/flang/Semantics/symbol.h
    M flang/lib/Semantics/resolve-names.cpp
    M flang/lib/Semantics/scope.cpp
    M flang/test/Semantics/symbol16.f90

  Log Message:
  -----------
  [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




More information about the All-commits mailing list