http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58341
Bug ID: 58341 Summary: Doc conflicts with standard on forbidden range of `result` in copy_backward() Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: kristian.spangsege at gmail dot com The documentation of copy_backward() in <bits/stl_algobase.h> conflicts with the C++ standard on the forbidden range of `result`. The documentation states that `result` must not be within the range [`first`, `last`). The standard instead requires that `result` is not within the range (`first`, `last`]. It is probably just a typo. See C++11 (2011-09-01) section 25.3.1/13.