[flang] Conform with standard (mostly) for character length mismatches on arguments
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. Differential Revision: https://reviews.llvm.org/D143821
parent
e800c664
Please register or sign in to comment