public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/16040] New: ptype prints the wrong type for members with typedef coming from outside class
@ 2013-10-10 23:36 dje at google dot com
  2014-01-23 18:01 ` [Bug symtab/16040] " keiths at redhat dot com
  2024-01-11 18:24 ` ssbssa at sourceware dot org
  0 siblings, 2 replies; 3+ messages in thread
From: dje at google dot com @ 2013-10-10 23:36 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16040

            Bug ID: 16040
           Summary: ptype prints the wrong type for members with typedef
                    coming from outside class
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: dje at google dot com

foo.c:

typedef int my_int;

class c
{
 public:
  my_int x;
  typedef int another_int;
};

c foo;

int
main ()
{
  return 0;
}

(gdb) pty foo
type = class c {
  public:
    another_int x;   <<<<<<<<<<< this can't be right

    typedef int another_int;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2024-01-11 18:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-10 23:36 [Bug symtab/16040] New: ptype prints the wrong type for members with typedef coming from outside class dje at google dot com
2014-01-23 18:01 ` [Bug symtab/16040] " keiths at redhat dot com
2024-01-11 18:24 ` ssbssa at sourceware dot 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).