This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Better error message for mis-ASSIGN'ed FORMAT statement
ClosedPublic

Authored by klausler on Jun 14 2022, 2:06 PM.

Diff Detail

Event Timeline

klausler created this revision.Jun 14 2022, 2:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 2:06 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jun 14 2022, 2:06 PM
klausler updated this revision to Diff 436957.Jun 14 2022, 2:56 PM
klausler retitled this revision from [flang] ERROR STOP is not an image control statement to [flang][runtime] Better error message for mis-ASSIGN'ed FORMAT statement.
klausler edited the summary of this revision. (Show Details)

When an I/O data transfer statement uses an ASSIGN'ed FORMAT that
has not been ASSIGN'ed to a FORMAT statement, the runtime receives
a zero-length format string. Distinguish this case from the general
error message about missing parentheses.

This revision is now accepted and ready to land.Jun 15 2022, 11:18 AM