https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992
--- Comment #30 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> --- (In reply to Iain Sandoe from comment #29) > I've posted a fix for this (it is the fix for darwin21 DTORs in general) Yes I've seen the patch, thanks! > however CAVEAT : there is No guarantee given by the GCC DTOR machinery about > the relative ordering of DTORs between different TUs, my fix will not solve > that. That was already the case before (if I understand right) and this is fine for our use: we have only one DTOR in libgfortran, and Fortran I/O and I/O in other languages should not operate on the same files or descriptors.