https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104272
--- Comment #5 from Kai Germaschewski <kai.germaschewski at gmail dot com> --- (In reply to Paul Thomas from comment #4) > Created attachment 54811 [details] > Fix for this PR > > I was sufficiently intrigued by this bug that I decided that I would look > into it right away. After all, it is the first time that such an old > finalization problem was producing too many calls to the final subroutine. > > I'll be posting to the list after checking the deja-gnuified testcase. > > Paul Thanks a lot for looking into this. I briefly looked at `gfc_trans_allocate`, but it's definitely beyond me ;)