This is an archive of the discontinued LLVM Phabricator instance.

[flang] Handle module subprogram with interface in same (sub)module when writing module file
ClosedPublic

Authored by klausler on Jun 14 2022, 1:50 PM.

Details

Summary

There's a few (3) cases where Fortran allows two distinct symbols to have
the same name in the same scope. Module file output copes with only two of
them. The third involves a separate module procedure that isn't separate:
both the procedure and its declared interface appear in the same (sub)module.
Fix to ensure that the interface is included in the module file output, so
that the module file reader doesn't suffer a bogus error about a "separate
module procedure without an interface".

Diff Detail

Event Timeline

klausler created this revision.Jun 14 2022, 1:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 1:50 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jun 14 2022, 1:50 PM
jeanPerier accepted this revision.Jun 15 2022, 11:33 PM
This revision is now accepted and ready to land.Jun 15 2022, 11:33 PM