This is an archive of the discontinued LLVM Phabricator instance.

[flang] Replay a FORMAT at the right position
ClosedPublic

Authored by klausler on Jul 21 2020, 5:20 PM.

Details

Summary

When FORMAT control reaches the final parenthesis and data items
remain, we advance a record and revert to the beginning of the
FORMAT for further items. But when the FORMAT contains any
nested parenthesized group of editing descriptors, possibly
repeated, reversion must be to the beginning of the last such
top-level parenthesized group, including its repetition count.

Diff Detail

Event Timeline

klausler created this revision.Jul 21 2020, 5:20 PM
Herald added a project: Restricted Project. · View Herald Transcript
sscalpone accepted this revision.Jul 21 2020, 6:31 PM
This revision is now accepted and ready to land.Jul 21 2020, 6:31 PM
PeteSteinfeld accepted this revision.Jul 21 2020, 6:42 PM

Builds, tests, and looks good.

klausler updated this revision to Diff 279694.Jul 21 2020, 6:58 PM

Add test case.

This revision was automatically updated to reflect the committed changes.