This is an archive of the discontinued LLVM Phabricator instance.

[flang] Conform with standard (mostly) for character length mismatches on arguments
ClosedPublic

Authored by klausler on Feb 11 2023, 11:19 AM.

Details

Summary

Fortran 2018 defines some flavors of dummy arguments to require exact
matching of character lengths between dummy and actual arguments;
these situations tend to be those in which the interface must be
explicit and a descriptor is involved: assumed shape, assumed rank,
allocatable, and pointer.

Fortran allows an actual argument in other cases to have a longer
length than the dummy argument; as a common extension, we support a
shorter actual argument as well by means of blank padding, but should
emit a warning.

Diff Detail

Event Timeline

klausler created this revision.Feb 11 2023, 11:19 AM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Feb 11 2023, 11:19 AM
klausler updated this revision to Diff 496762.Feb 12 2023, 9:08 AM

Fix bug found during integration testing.

The web interface says at several places "Context not available.". Did you git diff -U999999 main?
https://llvm.org/docs/DeveloperPolicy.html#id10

This revision is now accepted and ready to land.Feb 12 2023, 11:49 PM