Page MenuHomePhabricator

[flang] Detect and rewrite ambiguous READ(CVAR)[,item-list]

Authored by klausler on Oct 30 2020, 12:55 PM.



READ(CVAR)[,item-list] with a character variable CVAR
could be parsed as an unformatted READ from an internal
unit or as a formatted READ from the default external unit
with a needlessly parenthesized variable format. We parse
it as the former, but Fortran doesn't have unformatted
internal I/O.

Diff Detail

Event Timeline

klausler created this revision.Oct 30 2020, 12:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 30 2020, 12:55 PM
klausler requested review of this revision.Oct 30 2020, 12:55 PM
PeteSteinfeld accepted this revision.Oct 30 2020, 2:13 PM

All builds, tests, and looks good.

This revision is now accepted and ready to land.Oct 30 2020, 2:13 PM