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 35cfa80..9a51913 100644 (file)
@@ -1,5 +1,10 @@
 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
        definitions with trailing return types.
 
index 60c2e4e..157ceb3 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.