This is an archive of the discontinued LLVM Phabricator instance.

[flang] Extension: don't require commas between most edit descriptors in formats
ClosedPublic

Authored by klausler on Mar 1 2022, 9:57 AM.

Details

Summary

The standard explicitly allows a comma to be omitted between a 'P'
edit descriptor and a following numeric edit descriptor (e.g., 1PE10.1),
and before and after a '/' edit descriptor, but otherwise requires them
between edit descriptors. Most implementations, however, only require
commas where they prevent ambiguity, and accept things like 1XI10.
This extension is already assumed by the static FORMAT checker in
semantics. Patch the runtime to behave accordingly.

Diff Detail

Event Timeline

klausler created this revision.Mar 1 2022, 9:57 AM
klausler requested review of this revision.Mar 1 2022, 9:58 AM
vdonaldson accepted this revision.Mar 1 2022, 11:49 AM
This revision is now accepted and ready to land.Mar 1 2022, 11:49 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 1 2022, 3:16 PM