[all-commits] [llvm/llvm-project] 2e4499: [flang] Handle forward references to modules

Peter Klausler via All-commits all-commits at lists.llvm.org
Sun Feb 12 18:41:55 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e4499e749c0e0da71b70247e66f33f7e76991a2
      https://github.com/llvm/llvm-project/commit/2e4499e749c0e0da71b70247e66f33f7e76991a2
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-02-12 (Sun, 12 Feb 2023)

  Changed paths:
    M flang/docs/Extensions.md
    M flang/lib/Semantics/resolve-names.cpp
    A flang/test/Semantics/modfile53.f90
    A flang/test/Semantics/modfile54.f90

  Log Message:
  -----------
  [flang] Handle forward references to modules

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.

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




More information about the All-commits mailing list