https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64932
Paul Thomas <pault at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org --- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> --- Created attachment 34691 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34691&action=edit Patch for the PR class.c(finalize_component) is not able to deal correctly with non-allocatable derived type array components that have finalizable components. Rather than generating loops in finalize_component, I detected the condition in trans-stmt.c(gfc_trans_deallocate) and have called gfc_deallocate_alloc_comp after obtaining the derived type for the array. Happily, this fix does not generate the error: Error: Two or more part references with nonzero rank must not be specified at (1) which occurs if the code is written explicitly. Bootstraps and regtests on FC21/x_86_64 OK for trunk? Paul