This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/52681] [C++11] Using std::thread without -pthread crashes without warning
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 23 Mar 2012 12:31:38 +0000
- Subject: [Bug libstdc++/52681] [C++11] Using std::thread without -pthread crashes without warning
- Auto-submitted: auto-generated
- References: <bug-52681-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52681
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|minor |enhancement
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-23 12:31:38 UTC ---
The problem is that not all targets need -pthread, or some which do need it
spell it differently, and not all platforms define _REENTRANT when the option
is used, so there's no reliable way to do what you're asking for.