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++/11703] New: root namespace sometimes not working


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.


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