This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/11703] New: root namespace sometimes not working
- From: "jan dot kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 14 Jun 2010 06:55:48 -0000
- Subject: [Bug c++/11703] New: root namespace sometimes not working
- Reply-to: sourceware-bugzilla at sourceware dot org
class C { public: int i; } c; int main () { typeof (::C::i) x = c.i; return x; }
GNU gdb (GDB) 7.1.50.20100614-cvs
(gdb) start
(gdb) ptype C::i
type = int
(gdb) ptype ::C::i
No symbol "i" in current context.
But the C++ compiler apparently accepts `::C::i'.
I believe this bug should be fixed only with a new C++ parser.
Submitting as a KFAIL tracker bug.
--
Summary: root namespace sometimes not working
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
http://sourceware.org/bugzilla/show_bug.cgi?id=11703
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.