Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
Clang 20 generates deprecation warnings when std::stable_sort internally calls std::get_temporary_buffer (deprecated in C++17, removed in C++26).
Expected behaviour
Clean builds without deprecation warnings.
Steps to reproduce
Compile with Clang 20 (observed during fuzz build):
0cmake --preset=libfuzzer
1cmake --build build_fuzz
Relevant log output
0warning: 'get_temporary_buffer<std::shared_ptr<wallet::COutput>>' is deprecated [-Wdeprecated-declarations]
1 std::stable_sort(vCoins.begin(), vCoins.end(), [&](const std::shared_ptr<COutput>& a, const std::shared_ptr<COutput>& b) {
2 ^
3/usr/include/c++/v1/__algorithm/stable_sort.h:123:31: note: 'get_temporary_buffer<std::shared_ptr<wallet::COutput>>' has been explicitly marked deprecated here
4 auto __buf = _VSTD::get_temporary_buffer<value_type>(__len);
5 ^
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
master
Operating system and version
Ubuntu/Debian
Machine specifications
No response