https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108299
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |jakub at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I don't think your claims are based on anything in the standard. The standard clearly says that it is implementation defined if non-block thread_local vars are dynamically initialized right away or deferred and initialized on first non-initialization odr-use. The latter is what GCC implements.