[flang-commits] [PATCH] D113311: [flang] Complete the fix for NAMELIST look-ahead case
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Fri Nov 5 12:34:23 PDT 2021
klausler created this revision.
klausler added a reviewer: vdonaldson.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.
When processing the devious NAMELIST input
&group logarray = t t t
= 666 /
for LOGICAL::logarray(3) and INTEGER::t, the runtime library
needs to do some look-ahead on the input stream to make sure
that the last "t" on the first line is a truth value rather than
an item name -- which in this case it is. This look-ahead
was implemented in a previous patch but only worked for internal
input cases; this patch implements look-ahead capabilities for
input from an external file, too (and also adjusts repeated
list-directed input items to use this infrastructure, too).
https://reviews.llvm.org/D113311
Files:
flang/runtime/connection.cpp
flang/runtime/connection.h
flang/runtime/io-stmt.cpp
flang/runtime/io-stmt.h
flang/runtime/namelist.cpp
flang/runtime/unit.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113311.385156.patch
Type: text/x-patch
Size: 8367 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20211105/001d6325/attachment-0001.bin>
More information about the flang-commits
mailing list