Bug#2816: Static class member functions as default values

Volker Stuerzl volker.stuerzl at gmx.de
Thu Mar 9 22:33:44 UTC 2000

Package: kdevelop
Version: 1.0
Severity: normal

Bugreport ID : 23:14,09.03.00

Originator	: Volker Stuerzl
E-Mail		: volker.stuerzl at gmx.de

Subject : Static class member functions as default values

Error Class	: software bug
Error Location	: class tree
Priority	: low
Bug Description ---------------------------

The class view gets confused when constructors use default values that
are calculated by static class member functions.

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

The error occurred when I tried to initialize a QDate member with the
current date using QDate::currentDate() like in this example:
class myClass
  myClass(QDate d=QDate::currentDate(), int n=0)
    : date(d), number(n)

  QDate date;
  int number;

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

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

KDevelop version	: 1.0
KDE version		: 1.1
QT version		: 1.44
OS/Distribution		: SuSE Linux 6.1
Compiler		: EGCS 1.1.1

misc :

More information about the KDevelop-devel mailing list