Fixed #2116 (Internal error. Token::Match called with varid 0)

This commit is contained in:
Daniel Marjamäki 2010-10-21 21:28:32 +02:00
parent eba827bc4b
commit 9ae4a758b8
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ void CheckPostfixOperator::postfixOperator()
}
}
if (result)
if (result && tok->previous()->varId())
{
const Token *decltok = Token::findmatch(_tokenizer->tokens(), "%varid%", tok->previous()->varId());
if (decltok && Token::Match(decltok->previous(), "iterator|const_iterator|reverse_iterator|const_reverse_iterator"))