public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/52681] New: [C++11] Using std::thread without -pthread crashes without warning
@ 2012-03-23  2:08 mkline at cs dot wisc.edu
  2012-03-23 12:44 ` [Bug libstdc++/52681] " redi at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: mkline at cs dot wisc.edu @ 2012-03-23  2:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52681

             Bug #: 52681
           Summary: [C++11] Using std::thread without -pthread crashes
                    without warning
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mkline@cs.wisc.edu


Without -pthread, the constructor of std::thread always throws
std::system_error. While this was apparently the resolution to bug 42198,
simply throwing an error with the code 'operation_not_permitted' is rather
mystifying to someone who isn't aware of the problem in the first place.

Would it be possible to offer a more descriptive error, preferably at compile
time?


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-08-12 19:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-23  2:08 [Bug libstdc++/52681] New: [C++11] Using std::thread without -pthread crashes without warning mkline at cs dot wisc.edu
2012-03-23 12:44 ` [Bug libstdc++/52681] " redi at gcc dot gnu.org
2012-03-23 13:20 ` mkline at cs dot wisc.edu
2012-03-23 13:36 ` paolo.carlini at oracle dot com
2012-04-18 10:07 ` redi at gcc dot gnu.org
2012-04-18 14:06 ` mkline at cs dot wisc.edu
2012-04-18 14:28 ` redi at gcc dot gnu.org
2012-08-12 18:58 ` redi at gcc dot gnu.org
2012-08-12 19:03 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).