https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89591
--- Comment #2 from Alexandre Bique <bique.alexandre at gmail dot com> --- > It's initialized here: > >> id() noexcept : _M_thread() { } I did not know that it would initialize it to 0. In that case let's hope that pthread_t == "value-initialized" will never happen. Thank you for answering my question, and I think we can close the bug. Regards, Alex