]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libstdc++/54297 ([C++11] Segmentation fault with std::async and released shared...
authorJonathan Wakely <jwakely.gcc@gmail.com>
Sat, 25 Aug 2012 23:01:40 +0000 (23:01 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 25 Aug 2012 23:01:40 +0000 (00:01 +0100)
commit277f43d2d0c4554d1c050a8c4e913cbf4d54cf4b
tree14a840fae3c8a2b3e7a91873a4133ad272af91d9
parent81ea3024cac22aa75bd589fa455b132895e1a82f
re PR libstdc++/54297 ([C++11] Segmentation fault with std::async and released shared state)

PR libstdc++/54297
* include/std/future (~_Async_state_impl): Join thread before
derived class members are destroyed.
(~_Async_state_common): Only define non-trivial destructor when
included from future.cc for ABI compatibility reasons.
* src/c++11/future.cc (_GLIBCXX_ABI_COMPAT_ASYNC): Define.
* testsuite/30_threads/async/54297.cc: New.

From-SVN: r190672
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/future
libstdc++-v3/src/c++11/future.cc
libstdc++-v3/testsuite/30_threads/async/54297.cc [new file with mode: 0644]