This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: c++/1553: gdb confused in namespace / subclass
- From: Dirk-Jan Jongeneel <dirkjjn at cobalt dot et dot tudelft dot nl>
- To: carlton at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 18 Feb 2004 09:08:01 -0000
- Subject: Re: c++/1553: gdb confused in namespace / subclass
- Reply-to: Dirk-Jan Jongeneel <dirkjjn at cobalt dot et dot tudelft dot nl>
The following reply was made to PR c++/1553; it has been noted by GNATS.
From: Dirk-Jan Jongeneel <dirkjjn@cobalt.et.tudelft.nl>
To: gdb-gnats@sources.redhat.com
Cc:
Subject: Re: c++/1553: gdb confused in namespace / subclass
Date: Wed, 18 Feb 2004 10:06:34 +0100
I guess that the following example is a similar case.
In similar situation as the previous one it will only know class B and
not A::B.
In the large programm I encountered these problems it would actually
still know A::B but then as namespace. Casting of subclasses of B could
only be done to B, not A::B
class A {
public:
class B;
};
class A::B {
int a_b;
B& operator=(const B &other); //adding this line does ptype A::B
//fail but ptype B pass
};
int main(){
A* a_var;
}