This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Allow record advancement in child I/O via '/' control edit descriptor
ClosedPublic

Authored by klausler on Feb 16 2023, 10:53 AM.

Details

Summary

My earlier misreading of the Fortran standards had convinced me that child I/O

  • meaning the use of user-defined subroutines via generic interfaces to implement

data transfer statements -- was not allowed to advance the current record in the
ultimate unit of the original (non-child parent) data transfer statement.
This turns out to be wrong, so forward AdvanceRecord() from ChildFormattedIoStatement<>
to its parent I/O statement rather than implementing it as a no-op.

Diff Detail

Event Timeline

klausler created this revision.Feb 16 2023, 10:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 16 2023, 10:53 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Feb 16 2023, 10:53 AM
This revision is now accepted and ready to land.Feb 16 2023, 10:57 AM