[all-commits] [llvm/llvm-project] c207e3: [flang] Enforce a program not including more than ...

PeixinQiao via All-commits all-commits at lists.llvm.org
Sun May 8 19:50:26 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c207e36025f7a7889f1f26cf8a1b797656060e78
      https://github.com/llvm/llvm-project/commit/c207e36025f7a7889f1f26cf8a1b797656060e78
  Author: Peixin-Qiao <qiaopeixin at huawei.com>
  Date:   2022-05-09 (Mon, 09 May 2022)

  Changed paths:
    M flang/lib/Semantics/check-declarations.cpp
    M flang/lib/Semantics/resolve-names.cpp
    M flang/test/Semantics/call02.f90
    M flang/test/Semantics/case01.f90
    M flang/test/Semantics/modfile41.f90
    A flang/test/Semantics/multi-programs01.f90
    A flang/test/Semantics/multi-programs02.f90
    A flang/test/Semantics/multi-programs03.f90
    A flang/test/Semantics/multi-programs04.f90
    A flang/test/Semantics/multi-programs05.f90
    A flang/test/Semantics/multi-programs06.f90
    M flang/test/Semantics/omp-do04.f90
    M flang/test/Semantics/omp-do11.f90
    M flang/test/Semantics/resolve102.f90
    M flang/test/Semantics/resolve14.f90
    M flang/test/Semantics/resolve49.f90
    M flang/test/Semantics/resolve61.f90
    M flang/test/Semantics/symbol16.f90

  Log Message:
  -----------
  [flang] Enforce a program not including more than one main program

As Fortran 2018 5.2.2 states, a program shall consist of exactly one
main program. Add this semantic check.

Reviewed By: klausler

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




More information about the All-commits mailing list