Fixed #8027 (hang after AST_MAX_DEPTH is exceeded in array initialization)
This commit is contained in:
parent
d9f72d5f8c
commit
589fabd0b1
|
@ -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(), "[") &&
|
||||
|
|
Loading…
Reference in New Issue