This is an archive of the discontinued LLVM Phabricator instance.

[flang] Document and warn about an extension
ClosedPublic

Authored by klausler on Dec 1 2022, 10:17 AM.

Details

Summary

Standard Fortran allows type-bound procedure bindings to only
be called, and disallows them from being used in other contexts
where a procedure name can be: as the target of a procedure pointer
assignment statement, and as an actual argument that corresponds
to a dummy procedure. So long as the interfaces match, there's
no good reason for these uses to be errors, and there some obvious
use cases in polymorphic programming. So emit portability warnings
rather than errors, and document this usage as an extension.

Diff Detail

Event Timeline

klausler created this revision.Dec 1 2022, 10:17 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Dec 1 2022, 10:17 AM
This revision is now accepted and ready to land.Dec 1 2022, 11:12 AM
This revision was automatically updated to reflect the committed changes.