This is an archive of the discontinued LLVM Phabricator instance.

[flang] Stricter interface compatibility checking for TBP overrides
ClosedPublic

Authored by klausler on Mar 1 2023, 12:46 PM.

Details

Summary

The compiler currently ignores attributes for PASS dummy arguments that
are incompatible between a type-bound procedure in an extended type and
the binding of the same name that it overrides in an ancestor type,
if any. Strengthen this checking so that discrepancies between attributes
and intents are caught, and add some tests.

Diff Detail

Event Timeline

klausler created this revision.Mar 1 2023, 12:46 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Mar 1 2023, 12:46 PM
PeteSteinfeld accepted this revision.Mar 1 2023, 2:05 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Mar 1 2023, 2:05 PM