https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92546
--- Comment #30 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #29) > Avoiding <functional> makes a big difference: > > $ : | g++-11 -std=gnu++17 -P -E -x c++ - -include algorithm | wc -l > 27018 Doh, pasted the wrong line, the first number is g++-10 not g++-11 > $ : | g++-11 -std=gnu++17 -P -E -x c++ - -include algorithm | wc -l > 25188 > $ : | g++-12 -std=gnu++17 -P -E -x c++ - -include algorithm | wc -l > 12268 > > $ : | g++-11 -std=gnu++20 -P -E -x c++ - -include algorithm | wc -l > 45780 Same here > $ : | g++-11 -std=gnu++20 -P -E -x c++ - -include algorithm | wc -l > 42404 > $ : | g++-12 -std=gnu++20 -P -E -x c++ - -include algorithm | wc -l > 20918