[flang-commits] [PATCH] D96982: [flang] Extension: forward refs to dummy args under IMPLICIT NONE

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Feb 18 11:52:18 PST 2021


klausler created this revision.
klausler added a reviewer: tskeith.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96982

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96982.324718.patch
Type: text/x-patch
Size: 10945 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210218/e4743925/attachment.bin>


More information about the flang-commits mailing list