OSDN Git Service

PR libstdc++/54297
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Aug 2012 23:06:07 +0000 (23:06 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Aug 2012 23:06:07 +0000 (23:06 +0000)
commitb4338af1b293088db3c0db5b4d538112b4530d9d
treea9547118efda5419d5b84363ca1aca2de597388b
parentf6cdf3529442b98aa0a6a225ee2ddccbfbe9f807
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/branches/gcc-4_7-branch@190673 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]