Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With recent GCC 15 trunk, I started to see: ``` ld: .../kwalletentry.cc.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; src/runtime/kwalletd/backend/CMakeFiles/KF6WalletBackend.dir/cbc.cc.o:(.rodata+0x0): first defined here ``` The issue is that constexpr is only implicitly inline for functions or static data members [0], so the constexpr IsFloatType_v specialization here causes an ODR violation. Explicitly mark the specialization as inline constexpr. [0] http://eel.is/c++draft/dcl.constexpr#1.sentence-3 Fixes: 4b755bc Pick-to: 6.8 6.7 Change-Id: Ie9257138f6d1218ca0a91f5d114aab2483cb275b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
- Loading branch information