This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81047] thread local storage static class members of class type cannot be initialized
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 10 Jun 2017 09:41:02 +0000
- Subject: [Bug c++/81047] thread local storage static class members of class type cannot be initialized
- Auto-submitted: auto-generated
- References: <bug-81047-4@http.gcc.gnu.org/bugzilla/>
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).