aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-12 05:48:42 +0800
committerGitHub <noreply@github.com>2018-07-12 05:48:42 +0800
commit2b8091526fa3e3f50fff2271fecabc44edbb5375 (patch)
treec3805af5ae0078c10be216d32343044506a19bb0 /libsolidity
parent0c9645c9785740f9b8d906b1fe5f59b38ccc5782 (diff)
parent383b88793c3c72a7d8d216cbd9576b49270191a6 (diff)
downloaddexon-solidity-2b8091526fa3e3f50fff2271fecabc44edbb5375.tar.gz
dexon-solidity-2b8091526fa3e3f50fff2271fecabc44edbb5375.tar.zst
dexon-solidity-2b8091526fa3e3f50fff2271fecabc44edbb5375.zip
Merge pull request #4472 from ethereum/complexCalldataArraysNotYetImplemented
Throw unimplemented exception for complex calldata arrays.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/codegen/ABIFunctions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/codegen/ABIFunctions.cpp b/libsolidity/codegen/ABIFunctions.cpp
index 4818e111..b3f1bc7e 100644
--- a/libsolidity/codegen/ABIFunctions.cpp
+++ b/libsolidity/codegen/ABIFunctions.cpp
@@ -1188,7 +1188,8 @@ string ABIFunctions::abiDecodingFunctionCalldataArray(ArrayType const& _type)
solAssert(_type.dataStoredIn(DataLocation::CallData), "");
if (!_type.isDynamicallySized())
solAssert(_type.length() < u256("0xffffffffffffffff"), "");
- solAssert(!_type.baseType()->isDynamicallyEncoded(), "");
+ if (_type.baseType()->isDynamicallyEncoded())
+ solUnimplemented("Calldata arrays with non-value base types are not yet supported by Solidity.");
solAssert(_type.baseType()->calldataEncodedSize() < u256("0xffffffffffffffff"), "");
string functionName =