https://gcc.gnu.org/g:c9d61cff97b92c64e7f0717b3fb64fff4c870321
commit r15-2271-gc9d61cff97b92c64e7f0717b3fb64fff4c870321 Author: Michael Levine <mlevin...@bloomberg.net> Date: Tue Jul 23 12:50:31 2024 +0100 libstdc++: Remove duplicate include header from ranges_algobase.h The bits/stl_algobase.h header was added to bits/ranges_algobase.h separately through two related commits: r15-1106-g674d213ab91871 r15-1117-g0bb1db32ccf54a The comment for the first time it is included in the file is also incorrect (my error from that 2nd one) since it is really being included for __memcmp, not __memcpy This patch removes the duplicate header include. libstdc++-v3/ChangeLog: * include/bits/ranges_algobase.h: Remove duplicate include of <bits/stl_algobase.h>. Signed-off-by: Michael Levine <mlevin...@bloomberg.net> Diff: --- libstdc++-v3/include/bits/ranges_algobase.h | 1 - 1 file changed, 1 deletion(-) diff --git a/libstdc++-v3/include/bits/ranges_algobase.h b/libstdc++-v3/include/bits/ranges_algobase.h index 7ce5ac314f25..fd35b8ba14cb 100644 --- a/libstdc++-v3/include/bits/ranges_algobase.h +++ b/libstdc++-v3/include/bits/ranges_algobase.h @@ -35,7 +35,6 @@ #include <compare> #include <bits/stl_iterator_base_funcs.h> #include <bits/stl_iterator.h> -#include <bits/stl_algobase.h> // __memcpy #include <bits/ranges_base.h> // ranges::begin, ranges::range etc. #include <bits/invoke.h> // __invoke #include <bits/cpp_type_traits.h> // __is_byte