From b423431690c611b2b9cbb605106c082c5c3699e9 Mon Sep 17 00:00:00 2001 From: Debian Qt/KDE Maintainers Date: Sat, 8 Feb 2025 19:24:33 +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