aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-04-05 02:53:23 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-04-05 17:52:22 +0800
commit96eff0ff6abc614cb44a01137dfd0df1ef750088 (patch)
treeb59ade23a7a3c87f4286400d7a8476acc7f5b892 /libsolidity/codegen
parentc63efebd4517d51f29082a8d0cff814a4922243d (diff)
downloaddexon-solidity-96eff0ff6abc614cb44a01137dfd0df1ef750088.tar
dexon-solidity-96eff0ff6abc614cb44a01137dfd0df1ef750088.tar.gz
dexon-solidity-96eff0ff6abc614cb44a01137dfd0df1ef750088.tar.bz2
dexon-solidity-96eff0ff6abc614cb44a01137dfd0df1ef750088.tar.lz
dexon-solidity-96eff0ff6abc614cb44a01137dfd0df1ef750088.tar.xz
dexon-solidity-96eff0ff6abc614cb44a01137dfd0df1ef750088.tar.zst
dexon-solidity-96eff0ff6abc614cb44a01137dfd0df1ef750088.zip
Error when using empty parenthesis for base class constructors that require arguments.
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r--libsolidity/codegen/ContractCompiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp
index ebd9139a..d3a7e4ea 100644
--- a/libsolidity/codegen/ContractCompiler.cpp
+++ b/libsolidity/codegen/ContractCompiler.cpp
@@ -157,8 +157,8 @@ void ContractCompiler::appendInitAndConstructorCode(ContractDefinition const& _c
);
solAssert(baseContract, "");
- if (!m_baseArguments.count(baseContract->constructor()) && !base->arguments().empty())
- m_baseArguments[baseContract->constructor()] = &base->arguments();
+ if (!m_baseArguments.count(baseContract->constructor()) && base->arguments() && !base->arguments()->empty())
+ m_baseArguments[baseContract->constructor()] = base->arguments();
}
}
// Initialization of state variables in base-to-derived order.