Travis: Fix segmentation fault

This commit is contained in:
Daniel Marjamäki 2018-04-25 16:02:42 +02:00
parent bd54986017
commit e95c6e3038
1 changed files with 3 additions and 0 deletions

View File

@ -1673,6 +1673,9 @@ Function::Function(const Tokenizer *_tokenizer, const Token *tok, const Scope *s
throwArg(nullptr),
flags(0)
{
if (Token::simpleMatch(tok, "( ^"))
throw InternalError(tok, "SymbolDatabase bailout: Unhandled code: ( ^ ...");
// operator function
if (tokenDef->isOperatorKeyword()) {
isOperator(true);