Fixed bailoutFunctionPar() for temlate functions (#7396)

This commit is contained in:
PKEuS 2016-05-04 11:38:29 +02:00
parent f5bf0ff824
commit 23202d9442
1 changed files with 3 additions and 1 deletions

View File

@ -119,7 +119,9 @@ static bool bailoutFunctionPar(const Token *tok, const ValueFlow::Value &value,
tok = tok->previous();
}
tok = tok ? tok->previous() : nullptr;
if (!Token::Match(tok,"%name% ("))
if (tok && tok->link() && tok->str() == ">")
tok = tok->link()->previous();
if (!Token::Match(tok, "%name% ("))
return false; // not a function => do not bailout
if (!tok->function()) {