From ef96af29f2e645ab7b60971eb61516025ffd045b Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sun, 5 Oct 2014 15:44:09 +0300 Subject: [PATCH] future: avoid generalized lambda in forward_to() Crashes gdb with -O0. --- core/future.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/future.hh b/core/future.hh index a013d8eb9f..c165c1ce85 100644 --- a/core/future.hh +++ b/core/future.hh @@ -341,7 +341,7 @@ public: if (state()->available()) { state()->forward_to(pr); } else { - _promise->schedule([pr = std::move(pr)] (auto& state) mutable { + _promise->schedule([pr = std::move(pr)] (future_state& state) mutable { state.forward_to(pr); }); _promise->_future = nullptr;