[all-commits] [llvm/llvm-project] 4acd8f: [flang] Detect and rewrite ambiguous READ(CVAR)[, i...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Oct 30 15:48:00 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4acd8f7f0a7ef4009fe039297335b931ab9e62d0
      https://github.com/llvm/llvm-project/commit/4acd8f7f0a7ef4009fe039297335b931ab9e62d0
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2020-10-30 (Fri, 30 Oct 2020)

  Changed paths:
    M flang/lib/Parser/io-parsers.cpp
    M flang/lib/Semantics/rewrite-parse-tree.cpp
    A flang/test/Semantics/rewrite01.f90

  Log Message:
  -----------
  [flang] Detect and rewrite ambiguous READ(CVAR)[,item-list]

READ(CVAR)[,item-list] with a character variable CVAR
could be parsed as an unformatted READ from an internal
unit or as a formatted READ from the default external unit
with a needlessly parenthesized variable format.  We parse
it as the former, but Fortran doesn't have unformatted
internal I/O.

Differential revision: https://reviews.llvm.org/D90493




More information about the All-commits mailing list