https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106569
--- Comment #2 from David Binderman <dcb314 at hotmail dot com> --- (In reply to Richard Biener from comment #1) > I find those less obvious, for example does std::any_of guarantee some > evaluation order? I also find any_of less obvious, but that's because my working knowledge of C++ stopped about 20 years ago. According to https://cplusplus.com/reference/algorithm/any_of/ there is no guarantee of evaluation order. My best guess is that if gcc trunk is written in some recent version of C++, then all that recent version can be used.