[all-commits] [llvm/llvm-project] 8c407f: [flang] Allow ENTRY function result symbol usage b...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon May 9 19:12:41 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c407f4a1121ac3eaf46ca6e92f0976c196ce35b
      https://github.com/llvm/llvm-project/commit/8c407f4a1121ac3eaf46ca6e92f0976c196ce35b
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-05-09 (Mon, 09 May 2022)

  Changed paths:
    M flang/lib/Semantics/resolve-names.cpp
    M flang/test/Semantics/entry01.f90

  Log Message:
  -----------
  [flang] Allow ENTRY function result symbol usage before the ENTRY

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.

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




More information about the All-commits mailing list