From e95c6e3038ced830840bd0a06bfccfbdc3e9777e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 25 Apr 2018 16:02:42 +0200 Subject: [PATCH] Travis: Fix segmentation fault --- lib/symboldatabase.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 7e3f9cbd0..b7b8da6ac 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -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);