https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110626
--- Comment #10 from Paul Thomas <pault at gcc dot gnu.org> --- Hello Chris, > One point for your judgment: this changes finalize_46.f90. That test asserted > two finalizations for "b = a" where s holds the finalizable component t, but > its > own comments already say "One finalization call". The patch aligns the counts > with the comments, one per assignment, and adds finalize_62.f90 comparing a > direct assignment against the component case. You wrote both the test and the > PR37336 finalization code, so please confirm the single-count semantics are > what you intend before this goes in. I cannot recall what I meant by the comment. However, ifx and flang run finalize_46.f90 without failing. I will go through the logic once again once I have cooled down a bit. Regards Paul
