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 c++/11758] New: whatis does not dereference namespaced types


typedef int a;
typedef a b;
b x;
namespace A
  {
    typedef int a;
    typedef a b;
    b x;
  }

(gdb) whatis A::b
Actual:   type = A::b
Expected: type = A::a
(gdb) whatis A::a
Actual:   type = A::a
Expected: type = int


(gdb) ptype x
type = int
(gdb) whatis x
type = b
(gdb) whatis b
type = a
(gdb) whatis a
type = int
(gdb) ptype A::x
type = int
(gdb) whatis A::x
type = A::b
(gdb) whatis A::b
type = A::b
(gdb) whatis A::a
type = A::a

-- 
           Summary: whatis does not dereference namespaced types
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: jan dot kratochvil at redhat dot com
                CC: gdb-prs at sourceware dot org,swagiaal at redhat dot com
GCC target triplet: x86_64-unknown-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=11758

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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