This is an archive of the discontinued LLVM Phabricator instance.

[flang] Complete the fix for NAMELIST look-ahead case
ClosedPublic

Authored by klausler on Nov 5 2021, 12:34 PM.

Details

Summary

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).

Diff Detail

Event Timeline

klausler created this revision.Nov 5 2021, 12:34 PM
klausler requested review of this revision.Nov 5 2021, 12:34 PM
vdonaldson accepted this revision.Nov 5 2021, 12:48 PM
This revision is now accepted and ready to land.Nov 5 2021, 12:48 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptNov 8 2021, 10:01 AM