From: Debian Qt/KDE Maintainers Date: Fri, 25 Oct 2024 09:40:08 +0000 (+0300) Subject: QFutureInterface: fix build with GCC14/C++20: template-id not allowed X-Git-Tag: archive/raspbian/5.15.15+dfsg-2+rpi1^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0498c29b663b8bda32805b6f21fedd3d00ce2a93;p=qtbase-opensource-src.git 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 --- 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) { }