Unverified Commit efd5cdee authored by jeanPerier's avatar jeanPerier Committed by GitHub
Browse files

[flang][runtime] Finalize polymorphic components using dynamic type (#67040)

Previous code was finalizing polymorphic components according to static
type (calling the static type final routine, if any).

There is no way (I think) to know from a
Fortran::runtime::typeInfo::Component if an allocatable component is
polymorphic or not. So this patch just always uses the dynamic type
descriptor to check for derived type allocatable component finalization.
parent 469b3bfa
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment