[Bug libstdc++/59171] pretty printers: reverse iterator off by one
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 14 17:26:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59171
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #4)
> In the general case we can't print the correct value, because we may not be
> able to increment the 'current' member to point to the object that would
> result from dereferencing the reverse_iterator. The code for ++current might
> not be present in the executable.
Oops, I meant decrement, and --current of course!
More information about the Gcc-bugs
mailing list