MS only run time problem with inline static data member or inline variable.
AAn inline static data member’er's initialize function or inline variable's initialize function gets called multiple time.
To fix this, using template static data member’s initialization method instead.
So that inline static data member or inline variable initialize's function can be put into COMDAT group with global being initialized. And also put inline data in the linker directive. So that the function can be called before main.
To fix this, using template static data members initialization method instead. So that inline static data member initialize function can be put into COMDAT group with global being initialized. And also put static data member in the linker directive. So that the function can be called before main, even the that variable is not been referenced.
The bug is report in:
https://bugs.llvm.org/show_bug.cgi?id=37903