https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66944
Jason Vas Dias <jason.vas.dias at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason.vas.dias at gmail dot com --- Comment #5 from Jason Vas Dias <jason.vas.dias at gmail dot com> --- Very glad to find this bug, enabling my sanity to be preserved . It also happens with GCC 5.4.0 - and yes, re-declaring as 'static thread_local' in each member function that uses a static thread_local class member object appears to be the only workaround - thanks! I hope this is fixed in 7.1 ...