This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug symtab/16040] New: ptype prints the wrong type for members with typedef coming from outside class


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]