From 2d8727032827c25c4a5460e1c88df37b17139b36 Mon Sep 17 00:00:00 2001 From: Debian Qt/KDE Maintainers Date: Mon, 24 Mar 2025 15:42:48 +0300 Subject: [PATCH] QFutureInterface: fix build with GCC14/C++20: template-id not allowed Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=111c08d0eaa13465 Last-Update: 2024-07-24 When declaring a constructor, you must use the injected name, not a template. qfutureinterface.h:472:37: error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor] Gbp-Pq: Name gcc_14.diff --- src/corelib/thread/qfutureinterface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/thread/qfutureinterface.h b/src/corelib/thread/qfutureinterface.h index e4cc46e92..5a39bb8a9 100644 --- a/src/corelib/thread/qfutureinterface.h +++ b/src/corelib/thread/qfutureinterface.h @@ -281,7 +281,7 @@ template <> class QFutureInterface : public QFutureInterfaceBase { public: - explicit QFutureInterface(State initialState = NoState) + explicit QFutureInterface(State initialState = NoState) : QFutureInterfaceBase(initialState) { } -- 2.30.2