aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-06-07 01:36:19 +0800
committerchriseth <c@ethdev.com>2016-06-07 01:38:22 +0800
commitab7a22f4a0d95faacf453b76415eaee167aacdec (patch)
tree94a6f6ea9cffd3eaed15e8641b6fa3ae7523de60 /libsolidity/codegen
parenta1aee031d1fd1b773c2184280625a00a6c84ae7d (diff)
downloaddexon-solidity-ab7a22f4a0d95faacf453b76415eaee167aacdec.tar
dexon-solidity-ab7a22f4a0d95faacf453b76415eaee167aacdec.tar.gz
dexon-solidity-ab7a22f4a0d95faacf453b76415eaee167aacdec.tar.bz2
dexon-solidity-ab7a22f4a0d95faacf453b76415eaee167aacdec.tar.lz
dexon-solidity-ab7a22f4a0d95faacf453b76415eaee167aacdec.tar.xz
dexon-solidity-ab7a22f4a0d95faacf453b76415eaee167aacdec.tar.zst
dexon-solidity-ab7a22f4a0d95faacf453b76415eaee167aacdec.zip
Disallow implementation of abstract function by constructor of derived class.
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r--libsolidity/codegen/ContractCompiler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp
index 3623046e..bcfd33f2 100644
--- a/libsolidity/codegen/ContractCompiler.cpp
+++ b/libsolidity/codegen/ContractCompiler.cpp
@@ -776,7 +776,10 @@ void ContractCompiler::appendModifierOrFunctionCode()
{
solAssert(m_currentFunction, "");
if (m_modifierDepth >= m_currentFunction->modifiers().size())
+ {
+ solAssert(m_currentFunction->isImplemented(), "");
m_currentFunction->body().accept(*this);
+ }
else
{
ASTPointer<ModifierInvocation> const& modifierInvocation = m_currentFunction->modifiers()[m_modifierDepth];