From 589fabd0b1e1f026d34c45db484f6f8b312da980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 27 Apr 2017 20:53:27 +0200 Subject: [PATCH] Fixed #8027 (hang after AST_MAX_DEPTH is exceeded in array initialization) --- lib/tokenlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp index 156049261..82619df64 100644 --- a/lib/tokenlist.cpp +++ b/lib/tokenlist.cpp @@ -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(), "[") &&