This is an archive of the discontinued LLVM Phabricator instance.

[flang] CHARACTER(*) return does not require explicit interface
ClosedPublic

Authored by jeanPerier on Sep 22 2020, 1:20 AM.

Details

Summary

Fortran 2018 15.4.2.2(4)(c) says nonassumed or explicit non-constant
length parameter require explicit interface. The "nonassumed" part was
missing in f18 characteristic analysis causing CanBeCalledViaImplicitInterface
to return false for CHARACTER(*) function foo() like interfaces.

Diff Detail

Event Timeline

jeanPerier created this revision.Sep 22 2020, 1:20 AM
Herald added a project: Restricted Project. · View Herald Transcript
jeanPerier requested review of this revision.Sep 22 2020, 1:20 AM
klausler accepted this revision.Sep 22 2020, 9:22 AM
This revision is now accepted and ready to land.Sep 22 2020, 9:22 AM