inline variable is initialized more than once

后端 未结 3 1020
再見小時候
再見小時候 2020-12-18 02:59

Im seeing some examples of inline const variable getting initialized (and destructed) 3 times with visual studio 2017. Is this is a bug with the linker ? or is

3条回答
  •  不知归路
    2020-12-18 03:30

    As of today there is an update for visual studio 2017 to version 15.9.24 which fixes the problem.

    From the release notes:

    Fixed C++ compiler bug for proper folding of inline variable dynamic initializers.

提交回复
热议问题