https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992
Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu.org --- Comment #28 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> --- > Well, unless there's a good reason to have it in a DTOR, it makes for a more > robust solution to call it directly (there are various other differences > that could occur in mixed code bases esp. c++ + fortran even without the > Darwin21.1 bug). Mixed code is in fact the reason why it's in a DTOR and not called at the end of Fortran main program. We need this clean-up routine to run even when the main code is not in Fortran, and but Fortran routines are called by other means (Fortran object files linked, or Fortran-based library loaded at run-time).