[flang] Allow non polymorphic pointer assignment with polymorphic rhs
authorValentin Clement <clementval@gmail.com>
Wed, 30 Nov 2022 14:53:01 +0000 (15:53 +0100)
committerValentin Clement <clementval@gmail.com>
Wed, 30 Nov 2022 14:53:34 +0000 (15:53 +0100)
commit1bd0ff7a90593d3cf363325ff797bc5efa7928e0
tree4741cd255390b2087e2b548a5cac4380b5eade49
parentb802b537f8953b519795bf375ed7a97c0da4d1f5
[flang] Allow non polymorphic pointer assignment with polymorphic rhs

Remove the TODO and allow pointer assignment with non
polymorphic entity on the lhs. The assignment follow the same scheme
as derived-type pointer assignment to parent component.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D138998
flang/lib/Lower/Bridge.cpp
flang/test/Lower/polymorphic.f90