diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index efd98d6f740..82e5f477218 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -5249,8 +5249,8 @@ void Tokenizer::createLinks2() } else if (token->str() == "<" && ((token->previous() && (token->previous()->isTemplate() || (token->previous()->isName() && !token->previous()->varId()) || - (token->strAt(-1) == "]" && (!Token::Match(token->linkAt(-1)->previous(), "%name%|)") || token->linkAt(-1)->previous()->isKeyword()) || - (token->strAt(-1) == ")" && token->linkAt(-1)->strAt(-1) == "operator")))) || + (token->strAt(-1) == "]" && (!Token::Match(token->linkAt(-1)->previous(), "%name%|)") || token->linkAt(-1)->previous()->isKeyword())) || + (token->strAt(-1) == ")" && token->linkAt(-1)->strAt(-1) == "operator"))) || Token::Match(token->next(), ">|>>"))) { type.push(token); if (token->previous()->str() == "template")