https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96851
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- The instructions at https://gcc.gnu.org/bugs are clear about providing the commands used to compile, please remember to state that you used -std=c++20 (a godbolt URL is not sufficient). The branch using memcmp shouldn't be used during constant evaluation, but it also shouldn't be used for signed chars, so I'll fix that too.