public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/59161] New: GDB pretty printers: iterator->reference not printed
@ 2013-11-17 12:56 jan.kratochvil at redhat dot com
  2013-11-17 13:00 ` [Bug libstdc++/59161] " jan.kratochvil at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-11-17 12:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59161

            Bug ID: 59161
           Summary: GDB pretty printers: iterator->reference not printed
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jan.kratochvil at redhat dot com
                CC: pmuldoon at redhat dot com
            Target: x86_64-unknown-linux-gnu

gdb a.out -ex 'b 11' -ex r -ex 'p it'

(gdb) p it
$3 = {ref = }
          ^^^^ = bug
(gdb) p *it
$2 = (C &) @0x603010: {ref = @0x7fffffffd928}
(gdb) whatis it
type = __gnu_cxx::__normal_iterator<C*, std::vector<C, std::allocator<C> > >


#include <vector>
class C {
public:
  int &ref;
  C(int &ref_):ref(ref_) {}
};
int main() {
  int d(1);
  std::vector<C> vec({d});
  for (auto it=vec.begin();it!=vec.end();++it) {
    ++it->ref; // line 11
    __attribute__((unused)) C *gdb_stub(&*it);
  }
}


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/59161] GDB pretty printers: iterator->reference not printed
  2013-11-17 12:56 [Bug libstdc++/59161] New: GDB pretty printers: iterator->reference not printed jan.kratochvil at redhat dot com
@ 2013-11-17 13:00 ` jan.kratochvil at redhat dot com
  2015-05-06 14:16 ` jan.kratochvil at redhat dot com
  2015-05-06 16:09 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-11-17 13:00 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59161

--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
Tested with:
GNU gdb (GDB) 7.6.50.20131109-cvs
libstdcxx/v6/printers.py from GCC r201888 (=with PR libstdc++/53477 fix)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/59161] GDB pretty printers: iterator->reference not printed
  2013-11-17 12:56 [Bug libstdc++/59161] New: GDB pretty printers: iterator->reference not printed jan.kratochvil at redhat dot com
  2013-11-17 13:00 ` [Bug libstdc++/59161] " jan.kratochvil at redhat dot com
@ 2015-05-06 14:16 ` jan.kratochvil at redhat dot com
  2015-05-06 16:09 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jan.kratochvil at redhat dot com @ 2015-05-06 14:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
valid for: gcc-5.1.1-1.fc23.x86_64


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/59161] GDB pretty printers: iterator->reference not printed
  2013-11-17 12:56 [Bug libstdc++/59161] New: GDB pretty printers: iterator->reference not printed jan.kratochvil at redhat dot com
  2013-11-17 13:00 ` [Bug libstdc++/59161] " jan.kratochvil at redhat dot com
  2015-05-06 14:16 ` jan.kratochvil at redhat dot com
@ 2015-05-06 16:09 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2015-05-06 16:09 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-05-06
     Ever confirmed|0                           |1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-06 16:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-17 12:56 [Bug libstdc++/59161] New: GDB pretty printers: iterator->reference not printed jan.kratochvil at redhat dot com
2013-11-17 13:00 ` [Bug libstdc++/59161] " jan.kratochvil at redhat dot com
2015-05-06 14:16 ` jan.kratochvil at redhat dot com
2015-05-06 16:09 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).