https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92359
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >but not with msvc. Are you sure? >The result is that function static variables get instantiated more than 1 >times. That should not matter in even in shared libraries unless you are doing some symbol hidding in the shared library really.