[Bug c++/43230] [4.5 regression] Revision 157158 failed 30_threads/promise/members/set_value3.cc
redi at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Mar 2 14:14:00 GMT 2010
------- Comment #2 from redi at gcc dot gnu dot org 2010-03-02 14:13 -------
The fix is to remove the ~tester destructor, it's invalid to test the future's
state from the tester destructor, because the future state has already started
being destroyed and its condition_variable and mutex get destroyed before the
tester object.
An alternative would be to re-order the members of _State so the condvar and
mutex are destroyed later, but the test is still relying on behaviour that
isn't guaranteed, so I'll change the test.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43230
More information about the Gcc-bugs
mailing list