This commit is contained in:
orbitcowboy 2017-09-19 21:16:50 +02:00
commit 12e38b7f30
1 changed files with 4 additions and 0 deletions

View File

@ -150,6 +150,10 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
new_scope->classDef = tok;
new_scope->classStart = tok2;
new_scope->classEnd = tok2->link();
// make sure we have valid code
if (!new_scope->classEnd) {
_tokenizer->syntaxError(tok);
}
scope = new_scope;
tok = tok2;
} else {