This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Signal record read overrun when PAD='NO'
ClosedPublic

Authored by klausler on Apr 22 2022, 2:29 PM.

Details

Summary

When PAD='NO' and ADVANCE='YES', we currently signal an input
error when a formatted read tries to go past the end of a record
only when a fixed RECL= is in effect. Other compilers will signal
an error without RECL= too, and that seems like a precedent we
should follow.

Diff Detail

Event Timeline

klausler created this revision.Apr 22 2022, 2:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 22 2022, 2:29 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Apr 22 2022, 2:29 PM
vdonaldson accepted this revision.Apr 22 2022, 3:37 PM
This revision is now accepted and ready to land.Apr 22 2022, 3:37 PM