https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115799
--- Comment #8 from 康桓瑋 <hewillk at gmail dot com> --- (In reply to Jonathan Wakely from comment #7) > Fixed now, thanks for the reports. Thanks for the quick fix. There may be another potential issue that I don't know if it is worth mentioning. When the difference_type of the contiguous_iterator is an integer-class type such as ranges::__detail::__max_diff_type, we may also need to perform an explicit conversion in the call of __builtin_memchr as the latter only accepts size_t.