Bug#749290: g++-4.8: broken std::thread on Hurd
Package: g++-4.8
Version: 4.8.3-1
Severity: normal
Control: found -1 gcc-4.9/4.9.0-2
Ubuntu bug #1228201 affects hurd.
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1228201
On hurd
$ wget https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1228201/+attachment/3831609/+files/thread.cpp
$ 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 builds and runs fine
$ ./thread
1307674368000
355687428096000
Reply to: