[flang-commits] [PATCH] D127788: [flang][runtime] Catch more (all?) negative unit number errors

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Jun 14 13:56:11 PDT 2022


klausler created this revision.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

Fortran does have negative unit numbers -- they show up in child I/O
subroutines for defined I/O and for OPEN(NEWUNIT=) -- but the runtime
needs to catch the cases where a negative unit number that wasn't
generated by the runtime is passed in for OPEN or for an I/O statement
that would ordinarily create an anonymous "fort.NNN" file for a
hitherto unseen unit.


https://reviews.llvm.org/D127788

Files:
  flang/include/flang/Runtime/iostat.h
  flang/runtime/io-api.cpp
  flang/runtime/iostat.cpp
  flang/runtime/unit-map.h
  flang/runtime/unit.cpp
  flang/runtime/unit.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127788.436919.patch
Type: text/x-patch
Size: 15133 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220614/d3099da1/attachment-0001.bin>


More information about the flang-commits mailing list