https://bugs.kde.org/show_bug.cgi?id=504247
Bug ID: 504247 Summary: Error: variable template 'format_kind' declared with deduced type 'const auto' cannot appear in its own initializer when building with Clang Classification: Frameworks and Libraries Product: frameworks-kwallet Version: 6.14.0 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: va...@kde.org Reporter: m.seyfa...@gmail.com CC: kdelibs-b...@kde.org Target Milestone: --- SUMMARY Compiling kwallet 6.14 with Clang-21git (05f1e313948768fdd8527969cd79809cbd0654ff) on CachyOS, I get this compilation error: In file included from /tmp/makepkg/kwallet/src/kwallet-6.14.0/src/runtime/kwalletbackend/cbc.cc:9: In file included from /tmp/makepkg/kwallet/src/build/src/runtime/kwalletbackend/kwalletbackend_debug.h:6: In file included from /usr/include/qt6/QtCore/QLoggingCategory:1: In file included from /usr/include/qt6/QtCore/qloggingcategory.h:8: In file included from /usr/include/qt6/QtCore/qdebug.h:14: In file included from /usr/include/qt6/QtCore/qfloat16.h:14: In file included from /usr/include/qt6/QtCore/qtformat_impl.h:19: /usr/lib64/gcc/x86_64-pc-linux-gnu/15.1.1/../../../../include/c++/15.1.1/format:5118:7: error: variable template 'format_kind' declared with deduced type 'const auto' cannot appear in its own initializer 5118 | format_kind<_Rg> // you can specialize this for non-const input ranges | ^ STEPS TO REPRODUCE 1. Get Clang-21git (05f1e313948768fdd8527969cd79809cbd0654ff) 2. Try to compile kwallet 3. The build will error out around [ 20%] Building CXX object src/api/KWallet/CMakeFiles/KF6Wallet.dir/KF6Wallet_autogen/mocs_compilation.cpp.o OBSERVED RESULT Build failure. EXPECTED RESULT Build success. SOFTWARE/OS VERSIONS Windows: - macOS: - Linux/KDE Plasma: KDE Plasma Version: 6.3.5 KDE Frameworks Version: 6.14.0 Qt Version: 6.9.0 ADDITIONAL INFORMATION CachyOS is on GCC 15.1.1 The build succeeds when using GCC to build the package. -- You are receiving this mail because: You are watching all bug changes.