[all-commits] [llvm/llvm-project] ea2ff5: [flang] Extension: forward refs to dummy args unde...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Feb 18 13:15:01 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ea2ff54ccc22f86f95e989d47daa669e0af950a8
      https://github.com/llvm/llvm-project/commit/ea2ff54ccc22f86f95e989d47daa669e0af950a8
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-02-18 (Thu, 18 Feb 2021)

  Changed paths:
    M flang/docs/Extensions.md
    M flang/include/flang/Common/Fortran-features.h
    M flang/lib/Semantics/resolve-names.cpp
    M flang/test/Semantics/assign04.f90
    A flang/test/Semantics/resolve103.f90

  Log Message:
  -----------
  [flang] Extension: forward refs to dummy args under IMPLICIT NONE

Most Fortran compilers accept the following benign extension,
and it appears in some applications:

  SUBROUTINE FOO(A,N)
    IMPLICIT NONE
    REAL A(N) ! N is used before being typed
    INTEGER N
  END

Allow it in f18 only for default integer scalar dummy arguments.

Differential Revesion: https://reviews.llvm.org/D96982




More information about the All-commits mailing list