[flang-commits] [PATCH] D125144: [flang] Allow ENTRY function result symbol usage before the ENTRY

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri May 6 16:25:38 PDT 2022


klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

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.


https://reviews.llvm.org/D125144

Files:
  flang/lib/Semantics/resolve-names.cpp
  flang/test/Semantics/entry01.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125144.427786.patch
Type: text/x-patch
Size: 4761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220506/04464bfe/attachment.bin>


More information about the flang-commits mailing list