PR libstdc++/55917 do not handle exceptions in std::thread
authorJonathan Wakely <jwakely@redhat.com>
Mon, 12 Jun 2017 16:37:28 +0000 (17:37 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 12 Jun 2017 16:37:28 +0000 (17:37 +0100)
commit754d67d5ba4a1f9994210d402893a4cf49ce6a71
treec6cb9b0e945fa058d0d59c766b3472eab868a3d3
parent196ed8eae5698eaa2f4b7d77e3d9b3d753d01c8a
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.

From-SVN: r249130
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++11/thread.cc
libstdc++-v3/testsuite/30_threads/thread/cons/terminate.cc [new file with mode: 0644]