https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112569
Bug ID: 112569 Summary: libstdc++-v3/include/ranges:1456: missing check for self-assignment Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: terra at gnome dot org Target Milestone: --- The move assignment operator for _CachedPosition does not check for self-assignment and it is not obviously safe for other reasons. Self-assignment will overwrite _M_offset with the value -1. It's an internal class. I have no idea if this has any externally visible consequences.