From cf76ea8c43495e46d5d7cc3f0e6a54f058fe4357 Mon Sep 17 00:00:00 2001 From: Amber Ehrlich Date: Wed, 5 Nov 2025 16:27:27 +0100 Subject: [PATCH] fix: fix segfault in dpp::task with g++ above 15.2 (gcc-mirror/gcc@a169a4718b5b621f1770789e55eb8c441f7d0fcd specifically) --- include/dpp/coro/task.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dpp/coro/task.h b/include/dpp/coro/task.h index 2bc8a6c8d6..3b45db6eff 100644 --- a/include/dpp/coro/task.h +++ b/include/dpp/coro/task.h @@ -282,8 +282,8 @@ struct promise_base : basic_promise { /** @brief Wrapper for the awaitable's await_suspend */ template - [[nodiscard]] decltype(auto) await_suspend(T&& handle) noexcept(noexcept(awaitable.await_suspend(std::forward(handle)))) { - return awaitable.await_suspend(std::forward(handle)); + [[nodiscard]] decltype(auto) await_suspend(T handle) noexcept(noexcept(awaitable.await_suspend(std::move(handle)))) { + return awaitable.await_suspend(std::move(handle)); } /**