Bug 45770 - class view problem with nested classes
Summary: class view problem with nested classes
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: kdevelop 2.x (obsolete) (show other bugs)
Version: 2.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop-Devel List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-25 23:33 UTC by Marc Klinger
Modified: 2003-02-23 19:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.