------- 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