https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96853
NIKEA-SOFT <nsoft.sagaonline at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nsoft.sagaonline at gmail dot com --- Comment #1 from NIKEA-SOFT <nsoft.sagaonline at gmail dot com> --- I confirm the presence of this problem since version GCC 5.3. I came across it just recently when I was working with my library. The situation is as follows: starting from version 5.3, TLS init is not called in template global variables marked as thread_local. Here is the MRE, pay attention to lines 31 and 33, we see the absence of the TLS Init call since version 5.3 of GCC. https://godbolt.org/z/a5orhhTjT