[all-commits] [llvm/llvm-project] b63162: [flang] Accept FINAL forward reference to separate...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Aug 29 13:37:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b6316294be01e7b332e6fdb88ce8de5c9a98af8c
      https://github.com/llvm/llvm-project/commit/b6316294be01e7b332e6fdb88ce8de5c9a98af8c
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M flang/lib/Semantics/resolve-names.cpp
    A flang/test/Semantics/symbol30.f90

  Log Message:
  -----------
  [flang] Accept FINAL forward reference to separate module procedure

When one of a derived type's FINAL procedures is in a submodule,
its separate module procedure interface must necessarily be a
forward reference from the FINAL statement, as its interface
could not appear before the definition of the type.  The implementation
of FINAL procedure name resolution doesn't work for forward references;
replace it.

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




More information about the All-commits mailing list