[flang-commits] [PATCH] D143799: [flang] Handle forward references to modules

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Feb 10 18:00:04 PST 2023


klausler created this revision.
klausler added a reviewer: vzakhari.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
klausler requested review of this revision.

When a USE of a module precedes its definition in the same source  
file, ensure that the module is processed by name resolution before  
the USE statement.  This prevents the risk of the USE statement using
an obsolete module file that is later overwritten during the same
compilation.


https://reviews.llvm.org/D143799

Files:
  flang/docs/Extensions.md
  flang/lib/Semantics/resolve-names.cpp
  flang/test/Semantics/modfile53.f90
  flang/test/Semantics/modfile54.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143799.496648.patch
Type: text/x-patch
Size: 5876 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230211/37f6ff70/attachment-0001.bin>


More information about the flang-commits mailing list