https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113807
--- Comment #3 from rhalbersma <rhalbersma at gmail dot com> --- Nice that this is changed now. I noticed a similar optimization could be done for bitset::operator== (more accurately: the helper _M_is_equal) where there is an opportunity to use memcmp, with a similar dance for consteval contexts. MSVC STL also does this.