PR libstdc++/55917 do not handle exceptions in std::thread
commitcd1abcb642efaf238e25823493719b401ae33698
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Jun 2017 16:37:28 +0000 (12 16:37 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Jun 2017 16:37:28 +0000 (12 16:37 +0000)
treec6cb9b0e945fa058d0d59c766b3472eab868a3d3
parent95251b900f0e7d89a214a1735615b8c735eac04e
PR libstdc++/55917 do not handle exceptions in std::thread

PR libstdc++/55917
* src/c++11/thread.cc (execute_native_thread_routine): Remove
try-block so that exceptions propagate out of the thread and terminate
is called by the exception-handling runtime.
(execute_native_thread_routine_compat): Likewise.
* testsuite/30_threads/thread/cons/terminate.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249130 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++11/thread.cc
libstdc++-v3/testsuite/30_threads/thread/cons/terminate.cc [new file with mode: 0644]