This is an archive of the discontinued LLVM Phabricator instance.

[flang] Reset dynamic type for optional intent(out) allocatable polymorphic dummy
ClosedPublic

Authored by clementval on Mar 9 2023, 3:20 AM.

Details

Summary

Allocatable intent(out) are deallocated at the beginning of a function/subroutine.
For polyrmophic entities, the dynamic type need to be reseted to the declared
type. This patch makes sure this is done when the dummy argument is optional and
present.

Depends on D145674

Diff Detail

Event Timeline

clementval created this revision.Mar 9 2023, 3:20 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 9 2023, 3:20 AM
clementval requested review of this revision.Mar 9 2023, 3:20 AM
clementval updated this revision to Diff 503720.Mar 9 2023, 3:37 AM

Remove debug code

PeteSteinfeld accepted this revision.Mar 9 2023, 6:33 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Mar 9 2023, 6:33 AM