https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59171

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-12-13
          Component|debug                       |libstdc++
     Ever confirmed|0                           |1

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jan Kratochvil from comment #0)
> reverse_iterator seems unimplemented to me.

This is correct.

There's no #2 really. There is no pretty printer for reverse iterators (which
is #1), so it prints the object's members one-by-one. The 'current' member is
an iterator to the previous position, which does have a pretty-printer, and so
gets dereferenced and printed. IMHO printing an iterator should not print the
thing it points to automatically, because that assumes it's a valid iterator
(bug 59170).

If we add a pretty printer for reference_iterator we could make it do something
more sensible.

Reply via email to