[flang] Allow pointer association between derived-type pointer and unlimited polymorp...
authorValentin Clement <clementval@gmail.com>
Thu, 19 Jan 2023 16:34:01 +0000 (17:34 +0100)
committerValentin Clement <clementval@gmail.com>
Thu, 19 Jan 2023 16:34:34 +0000 (17:34 +0100)
commitfd26eee486ed81a2477e28d069fb68072fd7b2a2
tree2cc636c4a867156e3d3bc231274fdc5e9608535b
parente315b872b291ad268bf0ae6e276a07de6f29992b
[flang] Allow pointer association between derived-type pointer and unlimited polymorphic target

Pointer association to unlimited polymorphic target is allowed for
unlimited polymorphic pointer and non-extensible derived-type.
This is checked by the semantic and this patch allows it in the
fir.rebox operation.

Reviewed By: jeanPerier, PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D142104
flang/lib/Optimizer/Dialect/FIROps.cpp
flang/test/Lower/polymorphic.f90