This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix parsing of WRITE(I+J) with more accurate look-ahead
ClosedPublic

Authored by klausler on Jan 30 2021, 10:12 AM.

Details

Summary

The parsing of I/O units uses look-ahead to discriminate between
keywords, variables and expressions as part of distinguishing internal
from external I/O. The look-ahead was inaccurate for variables that
appear as the initial parts of expressions.

Diff Detail

Event Timeline

klausler created this revision.Jan 30 2021, 10:12 AM
klausler requested review of this revision.Jan 30 2021, 10:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 30 2021, 10:12 AM
tskeith accepted this revision.Jan 30 2021, 11:08 AM
This revision is now accepted and ready to land.Jan 30 2021, 11:08 AM
PeteSteinfeld accepted this revision.Jan 30 2021, 12:45 PM

All builds, tests, and looks good.