[flang-commits] [PATCH] D123723: [flang] Defer NAMELIST group item name resolution

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Apr 13 13:05:44 PDT 2022


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

Items in NAMELIST groups might be host-associated implicitly-typed
variables, but name resolution can't know that when the NAMELIST
appears in a specification part and the host's execution part has
not yet been analyzed.  So defer NAMELIST group item name resolution
to the end of the execution part.  This is safe because nothing
else in name resolution depends on whether a variable is in a
NAMELIST group or not.


https://reviews.llvm.org/D123723

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123723.422624.patch
Type: text/x-patch
Size: 4755 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220413/b57414d6/attachment.bin>


More information about the flang-commits mailing list