[all-commits] [llvm/llvm-project] 1c2935: [flang] Prohibit MODULE procedures in the global s...

Pete Steinfeld via All-commits all-commits at lists.llvm.org
Wed Mar 3 11:51:32 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c2935a7729fdc22186fa0a21968061a7f52f021
      https://github.com/llvm/llvm-project/commit/1c2935a7729fdc22186fa0a21968061a7f52f021
  Author: Peter Steinfeld <psteinfeld at nvidia.com>
  Date:   2021-03-03 (Wed, 03 Mar 2021)

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

  Log Message:
  -----------
  [flang] Prohibit MODULE procedures in the global scope

We were allowing procedures with the MODULE prefix to be declared at the global
scope.  This is prohibited by C1547 and was causing an internal check of the
compiler to fail.

I fixed this by adding a check.  I also added a test that would trigger a crash
without this change.

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




More information about the All-commits mailing list