https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80883
LIU Hao <lh_mouse at 126 dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from LIU Hao <lh_mouse at 126 dot com> --- I'm closing this. It looks like if mingw-w64 CRT doesn't define `__dso_handle` then a null pointer is passed, but with more recent versions it is defined, and the argument is no longer a null pointer.