[Bug 68143] New: cpp code-completion within namesapce defined in file AND in method implementation
Serge Lussier
serge.lussier at videotron.ca
Thu Nov 13 22:28:05 UTC 2003
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=68143
Summary: cpp code-completion within namesapce defined in file AND
in method implementation
Product: kdevelop
Version: unspecified
Platform: Unlisted Binaries
OS/Version: Linux
Status: UNCONFIRMED
Severity: crash
Priority: NOR
Component: general
AssignedTo: kdevelop-devel at kdevelop.org
ReportedBy: serge.lussier at videotron.ca
Version: Beta 1 (using KDE KDE 3.1.4)
Installed from: Unspecified Linux
Compiler: gcc 3.x
OS: Linux
hi there,
I am not really sure how to call it because of my limited english skill...Anyway - here below the example describing the problem:
in the .h include file.
namespace ns{
class aClass{
blah...blah...
void aMethod();
};//aClass
}; //namespace ns
----------------
In the impl. .cpp file:
#include "aclass.h"
...
namespace ns{
aClass::aClass()
{
...
}
void ns::aClass::aMethod()
{
this->... /// crash kdevelop as explained below
}
}; // namespace ns
the construct "ns::aClass::aMethod()" cause the cppcomppletion to crash KDevelop because of scoping the namespace twice.
In fact, aClass:aMethod would be generated by the class utility with the ns:: scope at the very end of the impl. file -- outside the namespace { }; delemiters. that is correct:-) but somtime I prefer to put back the method's code inside the ns{ }; block and forget to remove the ns:: scoping on aClass::aMethod. Thus the cppcodecompletion loops until all the application ram/stack space is exausted and then...crash ;-)
I suspect the codecompletion engine uses a recursive loop with some missing checkpoints... ;-)
More information about the KDevelop-devel
mailing list