This is the mail archive of the gdb-prs@sources.redhat.com 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]

Re: c++/1553: gdb confused in namespace / subclass


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;
 }
 
 


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