This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27557] OpenMP threadprivate directive does not work with non-POD types
- From: "ssameer at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 17 Apr 2016 19:15:08 +0000
- Subject: [Bug c++/27557] OpenMP threadprivate directive does not work with non-POD types
- Auto-submitted: auto-generated
- References: <bug-27557-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=27557
Sameer Sheorey <ssameer at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ssameer at gmail dot com
--- Comment #17 from Sameer Sheorey <ssameer at gmail dot com> ---
The second fragment still fails in gcc 5.3.1 (OpenSuse 13.2). I noticed that
the C++11 version succeeds:
struct A {
A() {}
};
thread_local A a;
Is it possible to migrate this to the OpenMP implementation as well?