Bug#2275: marked as done (Incomplete forward declaration of a class causes kdevelop to crash)

Stephan Kulow owner at bugs.kde.org
Wed Nov 17 00:48:00 UTC 1999

Your message dated Wed, 17 Nov 1999 01:45:53 +0100
with message-id <99111701460902.01327 at ati15>
and subject line (no subject)
has caused the attached bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I'm
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Stephan Kulow
(administrator, KDE bugs database)

Received: (at submit) by bugs.kde.org; 10 Nov 1999 21:56:38 +0000
>From pahajoki at voimax.cygnnet.jkl.fi Wed Nov 10 22:56:38 1999
Received: from voimax.cygnnet.jkl.fi ([]:39688 "EHLO
        voimax.cygnnet.jkl.fi") by max.tat.physik.uni-tuebingen.de with ESMTP
	id <S741491AbPKJV4b>; Wed, 10 Nov 1999 22:56:31 +0100
Received: (from pahajoki at localhost)
	by voimax.cygnnet.jkl.fi (8.9.3/8.9.3) id XAA30442
	for submit at bugs.kde.org; Wed, 10 Nov 1999 23:54:49 +0200
From:   Kalle Pahajoki <pahajoki at voimax.cygnnet.jkl.fi>
Message-Id: <199911102154.XAA30442 at voimax.cygnnet.jkl.fi>
Subject: Incomplete forward declaration of a class causes kdevelop to crash
To:     submit at bugs.kde.org
Date:   Wed, 10 Nov 1999 23:54:49 +0200 (EET)
X-Mailer: ELM [version 2.5 PL0pre8]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Return-Path: <pahajoki at voimax.cygnnet.jkl.fi>
X-Orcpt: rfc822;submit at bugs.kde.org

Package: kdevelop
Version: 1.0beta4.1
Severity: normal

Bugreport ID : 21:29,10.11.99

Originator      : Kalle Pahajoki
E-Mail          : pahajoki at voimax.cygnnet.jkl.fi

Subject : Incomplete forward declaration of a class causes kdevelop to crash

Error Class     : software bug
Error Location  : class tree
Priority        : medium

Bug Description ---------------------------

(Reading bugs.kde.org I noticed some reports that seem to describe the
same problem. However, they seem to be a little sketchy, so I'll send this
in the hope that it will be of use to you)

I have a header file for class Foo. The class Foo contains a pointer to
class Bar, so I was forward declaring class Bar in foo.h. Having only
typed in "class ", kdevelop tried to autosave and crashed.
I ran kdevelop from konsole, and it gave me the segfault with the
following message:

Path: /blah/blah
File: foo.h
Path: /blah/blah
File: foo.cpp
CClassView::refresh( proj )
So I looked at the file foo.h and completed the declaration of class Bar,
after which kdevelop run just fine.
I tested this further, and found out that:
        class class cow {};
would cause kdevelop to crash, while (for example):
        class int cow;
worked just fine.

(I talk about saving here, but the problem probably occurs every time
kdevelop refreshes the class tree, which just happens to happen when saving)

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

1. Create a new project.
2. Add to one of the header files (that gets included) the line:
class class Foo {};
3. Wait for autosave or select Save from File-menu

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

Do not save while forward declaring a class, and try to time doing it
between autosaves ;-)

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

KDevelop version        : 1.0beta4.1
KDE version             : 1.1.2
QT version              : 1.44
OS/Distribution         : Linux 2.2.13 / Red Hat 6.0
Compiler                : egcs-1.1.2

misc :

More information about the KDevelop-devel mailing list