Solved Bug - Namespaces - Manual Patch in this Mailtext!

Tobias Erbsland drzoom at profzone.ch
Sun Dec 5 15:21:29 GMT 1999


Hallo

Sorry, this fix is only for the Kdevelop-1.0-beta4.1 sourcecode.
I hope someone can fix this bug in the CVS - i don't have access to this.

Edit the File: ../kdevelop/classparser/ClassParser.cc

Go to line 315 plus/minus 3 lines. You will see this Codepart:

--- Orginalcode from Version beta4.1 ---
  // skip over '{'
  getNextLexem();

  while(lexem != 0 && lexem != '}') {
    parseTopLevelLexem();
  }

  namespace_stack.pop_back();
}
--- End of Orginalcode ---

The Bug is in the whileloop. It's a infiniteloop. Add the Line:

    getNextLexem();

After "parseTopLevelLexem()". Now your code will look like this:

--- Patched code ---
  // skip over '{'
  getNextLexem();

  while(lexem != 0 && lexem != '}') {
    parseTopLevelLexem();
    getNextLexem();
  }

  namespace_stack.pop_back();
}
--- End of Patched code. ---

Ok, very simple.

Bye
Tobias Erbsland






More information about the KDevelop mailing list