https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81047
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- What the error message is saying is if you use thread_local instead of __thread; it would work (and c++11 or higher).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81047
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- What the error message is saying is if you use thread_local instead of __thread; it would work (and c++11 or higher).