Version: SVN (using Devel) Compiler: gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) OS: Linux Installed from: Compiled sources When you create a new class in Kdev4 the resulting .cpp file #includes itself, which causes an infinite #include loop. Which crashes kdev (this crash I suppose is a separate parser bug). To reproduce: 1. Code > Create New Class 2. Run Through the Wizard 3. Specify a NewClass.h and NewClass.cpp as filenames (actual name doesn't matter) 4. Open the new NewClass.cpp file, and see the #include "NewClass.cpp" 5. Let the parser parse the new file -> crash! Expected Behavior: NewClass.cpp should #include "NewClass.h"
Ok, I have fixed the crash. Instead the problem-reporter will show a problem now. The class-wizard is another story though. :)
Then this particular bug is not fixed. So it needs to stay open.
link * r867181 languages/trunk/KDE/kdevelop/languages/cpp/codegen/cppnewclass.cpp: Fixes a little typo so the new class generator won't self include the implementation file.