[all-commits] [llvm/llvm-project] 435641: [flang] Catch bad OPEN(STATUS=) cases

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Mar 25 18:25:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 435641bc3d8e7cd9acb6efeacd32962e2cc167cc
      https://github.com/llvm/llvm-project/commit/435641bc3d8e7cd9acb6efeacd32962e2cc167cc
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-03-25 (Fri, 25 Mar 2022)

  Changed paths:
    M flang/runtime/io-stmt.cpp

  Log Message:
  -----------
  [flang] Catch bad OPEN(STATUS=) cases

STATUS='NEW' and 'REPLACE' require FILE= to be present.
STATUS='SCRATCH' may not appear with FILE=.

These errors are caught at compilation time when constant character
strings are used in an OPEN statement, but the runtime needs
to enforce them as well to catch errors in OPEN statements
with character variables and expressions.

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




More information about the All-commits mailing list