This is an archive of the discontinued LLVM Phabricator instance.

[flang] Accept BOZ literals for some actual arguments
ClosedPublic

Authored by klausler on Jan 19 2022, 10:12 AM.

Details

Summary

Consistent with previously documented policy, in which
BOZ literals are accepted in non-standard-conforming circumstances
where they can be converted to an unambiguous known numeric type,
allow BOZ literals to be passed as an actual argument in a reference
to a procedure whose explicit interface has a corresponding dummy
argument with a numeric type to which the BOZ literal may be
converted. Improve error messages associated with BOZ literal
actual arguments, too: don't emit multiple errors.

Diff Detail

Event Timeline

klausler created this revision.Jan 19 2022, 10:12 AM
klausler requested review of this revision.Jan 19 2022, 10:12 AM
vdonaldson accepted this revision.Jan 19 2022, 10:35 AM
This revision is now accepted and ready to land.Jan 19 2022, 10:35 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2022, 5:32 PM