This is an archive of the discontinued LLVM Phabricator instance.

[flang] Extension to distinguish specific procedures
ClosedPublic

Authored by klausler on Oct 21 2021, 10:38 AM.

Details

Summary

Allocatable dummy arguments can be used to distinguish
two specific procedures in a generic interface when
it is the case that exactly one of them is polymorphic
or exactly one of them is unlimited polymorphic. The
standard requires that an actual argument corresponding
to an (unlimited) polymorphic allocatable dummy argument
must also be an (unlimited) polymorphic allocatable, so an
actual argument that's acceptable to one procedure must
necessarily be a bad match for the other.

Diff Detail

Event Timeline

klausler created this revision.Oct 21 2021, 10:38 AM
klausler requested review of this revision.Oct 21 2021, 10:38 AM
PeteSteinfeld accepted this revision.Oct 21 2021, 1:48 PM

Looks great!

This revision is now accepted and ready to land.Oct 21 2021, 1:48 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 22 2021, 12:38 PM