https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105611
Bug ID: 105611 Summary: std::shift_left/right should not use ranges::next Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- Because they are based on different iterator systems. #include <algorithm> struct I { std::in_place_t in_place; using value_type = int; using difference_type = std::ptrdiff_t; int& operator*() const; I& operator++(); I operator++(int); bool operator==(I) const; }; int main() { std::shift_left(I(), I(), 0); std::shift_right(I(), I(), 0); } https://godbolt.org/z/v35h5Eobe