https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101933
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I suspect it is because __cxa_exit is not used such that deconstructors are not called at unload of the dll time.
pinskia at gcc dot gnu.org via Gcc-bugs Mon, 16 Aug 2021 14:20:09 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101933
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I suspect it is because __cxa_exit is not used such that deconstructors are not called at unload of the dll time.