https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113202
--- Comment #6 from Carsten Schmidt <carsten.schmidt-achim at gmx dot de> --- > Why do you think this is a bug? 1. Considering the "possible implementation" of cppreference.com, pointer arithmetic, e.g. ptr-ptr, should not be an issue when searching for the sentinel. 2. Using ranges::find() does not show the observed behavior. 3. Other implementations of the libstdc++, e.g. MSVC, work properly.