[all-commits] [llvm/llvm-project] b67984: [flang] Handle module subprogram with interface in...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Jun 16 10:09:03 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b67984d356272b36ac1ec04c4c844d3b57eeeff5
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-06-16 (Thu, 16 Jun 2022)

  Changed paths:
    M flang/lib/Semantics/mod-file.cpp

  Log Message:
  [flang] Handle module subprogram with interface in same (sub)module when writing module file

There's a few (3) cases where Fortran allows two distinct symbols to have
the same name in the same scope.  Module file output copes with only two of
them.  The third involves a separate module procedure that isn't separate:
both the procedure and its declared interface appear in the same (sub)module.
Fix to ensure that the interface is included in the module file output, so
that the module file reader doesn't suffer a bogus error about a "separate
module procedure without an interface".

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

More information about the All-commits mailing list