Ensure that builtins must be executed

This commit is contained in:
Alex Beregszaszi
2020-12-03 17:15:44 +01:00
committed by chriseth
parent e2a756a705
commit 6c0a3bd043
8 changed files with 9 additions and 10 deletions
+2
View File
@@ -256,6 +256,8 @@ Expression Parser::parseExpression()
{
if (currentToken() == Token::LParen)
return parseCall(std::move(operation));
else if (auto const& name = std::get<Identifier>(operation).name; m_dialect.builtin(name))
fatalParserError(7104_error, "Builtin function \"" + name.str() + "\" must be called.");
return std::get<Identifier>(operation);
}
else