Start with the following code: class MyClass { MyClass(); }; MyClass::MyClass() { ; } Now add an argument to the definition of the constructor: MyClass::MyClass(int x) { For now, this makes the code invalid, because the declaration and definition don't match. The definition prototype is underlined in red. Moving mouse over it shows "Problem in Semantic analysis: Out-of-line definition of 'MyClass' does not match any declaration in 'MyClass'" and offers "Update declaration signature" as a solution. If I activate the offered solution, the declaration is changed to this: class MyClass { void MyClass(int x); }; Despite being a constructor, it added a 'void' return type, making the code even more invalid than it was.
I assume this is the same as bug 365420
True. Thanks! *** This bug has been marked as a duplicate of bug 365420 ***
Bug 365420 is related with line 5.0.x, because was reported before branch 5.1 started. Anyway issue reported in bug 365420 is still present in the newest stable KDevelop version. I mean 5.0.4 (announced today). Choosing "Solution (1): Update declaration signature" makes that "void" is added in constructor declaration. I wonder why this bug is marked as "RESOLVED". I'm not able to find any commit fixing this bug in branch 5.1 - neither in kdevelop nor in kdevplatform. To searching I used cgit weblient. I searched "log msg" using "search" button. Or "RESOLVED DUPLICATE of bug 365420" means that only 365420 is fixed, because is duplicate of this (despite that this one is newer).
"RESOLVED DUPLICATE" just means this ticket is closed because it's a duplicate. The problem still exists and progress on it will be tracked in bug 365420.
Sorry for misunderstanding.