re PR libstdc++/64168 (FAIL: 30_threads/async/sync.cc execution test)
authorJonathan Wakely <jwakely@redhat.com>
Wed, 3 Dec 2014 16:09:21 +0000 (16:09 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 3 Dec 2014 16:09:21 +0000 (16:09 +0000)
PR libstdc++/64168
* include/std/future (_Deferred_state::_M_has_deferred): Fix return.

From-SVN: r218321

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/future

index 35cfa804e958fed73c17a976ad5c0db8024fb592..9a519138f91f6af69d5dae3c371f630456ea1f15 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-03  Jonathan Wakely  <jwakely@redhat.com>
+
+       PR libstdc++/64168
+       * include/std/future (_Deferred_state::_M_has_deferred): Fix return.
+
 2014-12-03  Jonathan Wakely  <jwakely@redhat.com>
 
        * include/bits/hashtable.h: Fix whitespace and simplify function
index 60c2e4eb6d937f1d97361726910d009b7fd1f559..157ceb3bffbb1e6f641ec4651c1ac13b27270981 100644 (file)
@@ -1606,7 +1606,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
       // Caller should check whether the state is ready first, because this
       // function will return true even after the deferred function has run.
-      virtual bool _M_has_deferred() const { true; }
+      virtual bool _M_has_deferred() const { return true; }
     };
 
   // Common functionality hoisted out of the _Async_state_impl template.