[all-commits] [llvm/llvm-project] afdbf1: [flang][runtime] Detect NEWUNIT= without FILE= or ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Jul 21 13:13:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: afdbf1b731ef582008e9ad08ecf787b2b6c2dd88
      https://github.com/llvm/llvm-project/commit/afdbf1b731ef582008e9ad08ecf787b2b6c2dd88
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-07-21 (Fri, 21 Jul 2023)

  Changed paths:
    M flang/include/flang/Runtime/iostat.h
    M flang/runtime/io-api.cpp
    M flang/runtime/io-stmt.cpp
    M flang/runtime/io-stmt.h
    M flang/runtime/iostat.cpp

  Log Message:
  -----------
  [flang][runtime] Detect NEWUNIT= without FILE= or STATUS='SCRATCH'

It is an error to open a new unit with OPEN(NEWUNIT=) and have
neither a file name nor a scratch status.  Catch it, and report a
new error code.

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




More information about the All-commits mailing list