diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index f3c19545f..5cb7370ef 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -5095,8 +5095,6 @@ void Tokenizer::simplifyVarDecl(bool only_k_r_fpar) const Token *VarTok = type0->tokAt((int)typelen); while (Token::Match(VarTok, "*|&|const")) VarTok = VarTok->next(); - if (!VarTok) - break; // ticket 4245 - invalid code probably list.insertTokens(eq, VarTok, 2); eq->str(";");