Bug 45770

Summary: class view problem with nested classes
Product: [Applications] kdevelop Reporter: Marc Klinger <marc>
Component: kdevelop 2.x (obsolete)Assignee: KDevelop-Devel List <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Marc Klinger 2002-07-25 23:26:56 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kdevelop
Version:           2.1 (using KDE 3.0.0 )
Severity:          normal
Installed from:    SuSE
Compiler:          gcc version 2.95.3 20010315 (SuSE)
OS:                Linux (i686) release 2.4.18-4GB
OS/Compiler notes: 

Class view doesn't show nested classes if they are declared in two different header files (with forward declaration in one of them).

Example:

--------- class1.h start ---------
class Class1 {
public: 
  void foo() {};
  class Class2;  // forward declaration
};
--------- class1.h end ---------

--------- class2.h start ---------
#include "class1.h"
class Class1::Class2 {  // real declaration
public: 
  void foo() {};
};
--------- class2.h end ---------

Class1 will be shown but not Class2.
I'm using KDevelop 2.1 now but the problem already existed in older versions.


(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 Marc Klinger 2002-07-27 09:40:17 UTC
The error also shows up if the classes to be nested are declared in the 
same header file like:

class Class1 {
public:
   void foo() {};
   class Class2; // forward declaration
};

class Class1::Class2 { // real declaration
public:
   void foo() {};
};


bye Marc
Comment 2 Caleb Tennis 2003-02-23 19:53:07 UTC
Looks like this has been fixed in CVS.