[all-commits] [llvm/llvm-project] e78236: [flang] Complete the fix for NAMELIST look-ahead case
Peter Klausler via All-commits
all-commits at lists.llvm.org
Mon Nov 8 10:01:38 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e7823608bc8e63f409ecd262b0e4a5a65a2ca9f8
https://github.com/llvm/llvm-project/commit/e7823608bc8e63f409ecd262b0e4a5a65a2ca9f8
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2021-11-08 (Mon, 08 Nov 2021)
Changed paths:
M flang/runtime/connection.cpp
M flang/runtime/connection.h
M flang/runtime/io-stmt.cpp
M flang/runtime/io-stmt.h
M flang/runtime/namelist.cpp
M flang/runtime/unit.cpp
Log Message:
-----------
[flang] Complete the fix for NAMELIST look-ahead case
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).
Differential Revision: https://reviews.llvm.org/D113311
More information about the All-commits
mailing list