[all-commits] [llvm/llvm-project] 2b12d8: [flang] Block containing an interface

vdonaldson via All-commits all-commits at lists.llvm.org
Thu Jun 29 13:26:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b12d8350eaaa4f07311526b9cf8976ac1a4564a
      https://github.com/llvm/llvm-project/commit/2b12d8350eaaa4f07311526b9cf8976ac1a4564a
  Author: V Donaldson <vdonaldson at nvidia.com>
  Date:   2023-06-29 (Thu, 29 Jun 2023)

  Changed paths:
    M flang/lib/Lower/Mangler.cpp
    M flang/test/Lower/block.f90

  Log Message:
  -----------
  [flang] Block containing an interface

Name mangling may be invoked for an interface procedure contained in
a block in a context that does not have access to block ID mapping.
Procedures can't be defined inside a block, so name mangling doesn't
need a block map. Relax an assert to account for this.

    block
      interface
        subroutine ss(n) bind(c)
          integer :: n
        end subroutine
      end interface
      call ss(5)
    end block
    end




More information about the All-commits mailing list