https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110110
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yep from looking at https://chromium.googlesource.com/v8/v8/+/refs/heads/main/src/heap/cppgc/stats-collector.h , there is no include of algorithm . The bug is almost definitely in the v8 sources.