mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Ensure that builtins must be executed
This commit is contained in:
committed by
chriseth
parent
e2a756a705
commit
6c0a3bd043
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user