public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11758] New: whatis does not dereference namespaced types
@ 2010-06-25 17:39 jan dot kratochvil at redhat dot com
2010-06-25 17:48 ` [Bug c++/11758] " jan dot kratochvil at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-06-25 17:39 UTC (permalink / raw)
To: gdb-prs
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/11758] whatis does not dereference namespaced types
2010-06-25 17:39 [Bug c++/11758] New: whatis does not dereference namespaced types jan dot kratochvil at redhat dot com
@ 2010-06-25 17:48 ` jan dot kratochvil at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-06-25 17:48 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From jan dot kratochvil at redhat dot com 2010-06-25 17:48 -------
Wrong GDB branch. FSF GDB does:
(gdb) whatis A::b
No symbol "b" in namespace "A".
(gdb) whatis A::a
No symbol "a" in namespace "A".
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-25 17:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-25 17:39 [Bug c++/11758] New: whatis does not dereference namespaced types jan dot kratochvil at redhat dot com
2010-06-25 17:48 ` [Bug c++/11758] " jan dot kratochvil at redhat dot com
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).