https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79685
--- Comment #17 from Paul Thomas <pault at gcc dot gnu.org> --- (In reply to Paul Thomas from comment #16) > Created attachment 58764 [details] > Fix for this PR > > Lot's of checking needed now: (i) To understand why this fix is necessary > here; and (ii) To see what else, if anything, that the patch fixes. > > Paul A greatly simplified variant on this patch was accepted at https://gcc.gnu.org/pipermail/fortran/2024-July/060732.html I have posted this link in the PR because it is such a long time since Mikael's review due to my being unavailable for gfortran work in the intervening time. I will be committing just as soon as the precautionary regression testing is done. Paul