Fixed #8027 (hang after AST_MAX_DEPTH is exceeded in array initialization)

This commit is contained in:
Daniel Marjamäki 2017-04-27 20:53:27 +02:00
parent d9f72d5f8c
commit 589fabd0b1
1 changed files with 1 additions and 1 deletions

View File

@ -1044,7 +1044,7 @@ static void createAstAtTokenInner(Token * const tok1, const Token *endToken, boo
;
// struct assignment
else if (Token::simpleMatch(tok->previous(), ") {") && Token::simpleMatch(tok->linkAt(-1), "( struct"))
;
continue;
// Lambda function
else if (Token::simpleMatch(tok->astParent(), "(") &&
Token::simpleMatch(tok->astParent()->astParent(), "[") &&