This is an archive of the discontinued LLVM Phabricator instance.

[flang] Reverse a reversed type compatibility check
ClosedPublic

Authored by klausler on May 6 2022, 2:53 PM.

Details

Summary

The semantic test for an intrinsic assignment to a polymorphic
derived type entity from a type that is an extension of its base
type was reversed, so it would allow assignments that it shouldn't
and disallowed some that it should; and the test case for it
incorectly assumed that the invalid semantics were correct.
Fix the code and the test, and add a new test for the invalid
case (LHS type is an extension of the RHS type).

Diff Detail

Event Timeline

klausler created this revision.May 6 2022, 2:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2022, 2:53 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.May 6 2022, 2:53 PM
jeanPerier accepted this revision.May 9 2022, 1:39 AM
This revision is now accepted and ready to land.May 9 2022, 1:39 AM
This revision was automatically updated to reflect the committed changes.