[all-commits] [llvm/llvm-project] eac925: [flang][runtime] Better handling of "fort.N" openi...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Jun 24 10:34:59 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eac925fb81f26342811ad1765e8f9919628e2254
      https://github.com/llvm/llvm-project/commit/eac925fb81f26342811ad1765e8f9919628e2254
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M flang/runtime/external-unit.cpp
    M flang/runtime/pseudo-unit.cpp
    M flang/runtime/unit.h

  Log Message:
  -----------
  [flang][runtime] Better handling of "fort.N" opening errors (#96347)

When a data transfer statement references a unit number that hasn't been
explicitly OPENed, the runtime I/O support library opens a local
"fort.N" file where N is the unit number. If that name exists in the
current working directory but is not a readable or writable file (as
appropriate), the runtime needs to catch the error at the point of the
READ or WRITE statement rather than leaving an open unit in the unit map
without a valid file descriptor.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list