[PATCH] D88675: [flang] Fix WRITE after BACKSPACE

Peter Klausler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 09:52:22 PDT 2020


klausler created this revision.
klausler added a reviewer: tskeith.
klausler added a project: Flang.
Herald added a reviewer: jdoerfert.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
klausler requested review of this revision.

A WRITE to an unformatted sequential variable-length unit after
a BACKSPACE needs to forget its previous knowledge of the length
of the record that's about to be overwritten, and a BACKSPACE
after an ENDFILE or at the start of the file needs to be a no-op.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88675

Files:
  flang/runtime/io-api.cpp
  flang/runtime/unit.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88675.295605.patch
Type: text/x-patch
Size: 3534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201001/967f8818/attachment-0001.bin>


More information about the llvm-commits mailing list