https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61841
Bug ID: 61841
Summary: broken std::thread on Hurd
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: 1o5g4r8o at gmail dot com
Created attachment 33142
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33142&action=edit
testcase
Forwarding Debian bug https://bugs.debian.org/749290
Attached testcase.
On hurd
$ g++ thread.cpp -pthread -std=c++11 -o thread
$ ./thread
terminate called after throwing an instance of 'std::system_error'
what(): Enable multithreading to use std::thread: Operation not permitted
Aborted
On linux it runs fine
$ ./thread
1307674368000
355687428096000