[all-commits] [llvm/llvm-project] 04a147: [flang] Include source information in an invalid f...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Nov 12 13:12:41 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 04a147987a6bde657bcdd505e651b7580cc60a2e
      https://github.com/llvm/llvm-project/commit/04a147987a6bde657bcdd505e651b7580cc60a2e
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2020-11-12 (Thu, 12 Nov 2020)

  Changed paths:
    M flang/lib/Semantics/rewrite-parse-tree.cpp
    M flang/test/Semantics/io04.f90

  Log Message:
  -----------
  [flang] Include source information in an invalid file-unit-number message

An io-unit that is an internal-file-variable is syntactically identical
to a file-unit-number expression that is a variable reference.  An
ambiguous unit is initially parsed as an internal-file-variable.  If
semantic analysis determines that the unit is not of character type,
it is rewritten as an internal-file-variable.  This modification must
retain source coordinate information.

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




More information about the All-commits mailing list