PR libstdc++/54297
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Aug 2012 23:01:40 +0000 (23:01 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Aug 2012 23:01:40 +0000 (23:01 +0000)
commitdd4f6b0f2a582152b7bb98141615dcbd6a0d9629
tree14a840fae3c8a2b3e7a91873a4133ad272af91d9
parent23b5e150a2b4b405ec97a6ac8a24cd4adcf5c86c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190672 138bc75d-0d04-0410-961f-82ee72b054a4
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]