This is an archive of the discontinued LLVM Phabricator instance.

[flang] Don't require newline at EOF in unformatted sequential runtime input
ClosedPublic

Authored by klausler on Jul 19 2021, 3:59 PM.

Details

Summary

F18 was sigalling an end-of-file error condition when reading an
unformatted sequential input file without an ultimate newline
(or CR-LF). Other Fortran implementations can handle it, so change
the runtime to support it.

Diff Detail

Event Timeline

klausler created this revision.Jul 19 2021, 3:59 PM
klausler requested review of this revision.Jul 19 2021, 4:00 PM
klausler retitled this revision from [flang] Don't require newline at EOF in unformatted sequetial runtime input to [flang] Don't require newline at EOF in unformatted sequential runtime input.

Ping. Are you able to confirm that this fix works?

I can confirm the fix. Thanks!

This revision was not accepted when it landed; it landed in state Needs Review.Jul 20 2021, 3:25 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 20 2021, 3:25 PM