Bug#1825: subclasses name [01:07,27.08.99]

Andrew Lipnitsky ert at cit.org.by
Thu Aug 26 22:35:55 UTC 1999


Package: kdevelop
Version: 1.0beta1
Severity: normal

Bugreport ID : 01:07,27.08.99

Originator : Andrew Lipnitsky
E-Mail : ert at cit.org.by

Subject : subclasses name

Error Class : software bug
Error Location: I don?t know
Priority : medium
Bug Description ---------------------------

 If there exist two subclasses with the same name for example as below:
class A {
:.
   class subclass {
 :..
   };
:.
};

class B {
:.
   class subclass {
 :..
   };
:
};

then Kdevelop exits with core dump.

How to repeat the error -------------------



Bugfix or Workaround ----------------------

There is a trick to avoid this problem:

#ifndef CLASSHIDE
#define CLASSHIDE(x__) x__
#endif

class A {
:.
   class CLASSHIDE(subclass) {
 :..
   };
:.
};

class B {
:.
   class CLASSHIDE(subclass) {
 :..
   };
:
};


System Information ------------------------

KDevelop version : 1.0beta1
KDE version  : 1.1.1
QT version  : 1.44
OS/Distribution : Linux RedHat 6.0 (Intel)
Compiler  :  egcs-1.1.2






More information about the KDevelop-devel mailing list