This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/52681] [C++11] Using std::thread without -pthread crashes without warning


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]