This commit is contained in:
PKEuS 2012-04-26 10:35:40 +02:00
parent a4c4c66a4c
commit 1e708e10d0
2 changed files with 5 additions and 2 deletions

View File

@ -7783,7 +7783,10 @@ void Tokenizer::simplifyComma()
// Skip unhandled template specifiers..
if (Token::Match(tok, "%var% <")) {
tok->next()->findClosingBracket(tok);
Token* tok2;
tok->next()->findClosingBracket(tok2);
if (tok2)
tok = tok2;
}
// If token after the comma is a constant number, simplification is not required.

View File

@ -3064,7 +3064,7 @@ private:
void varid33() { // ticket #2875 (segmentation fault)
const std::string code("0; (a) < (a)");
tokenizeDebugListing(code);
tokenizeDebugListing(code, true);
ASSERT_EQUALS("", errout.str());
}