diff options
author | chriseth <c@ethdev.com> | 2016-01-08 22:20:20 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-01-08 22:20:54 +0800 |
commit | d3c8847726f6c00269bca89e6ee281948e2a353f (patch) | |
tree | 7453448b061186e38373bb232698dbce1c703d6b | |
parent | b158e48c1a8be7258f283be049c1db779e661998 (diff) | |
download | dexon-solidity-d3c8847726f6c00269bca89e6ee281948e2a353f.tar.gz dexon-solidity-d3c8847726f6c00269bca89e6ee281948e2a353f.tar.zst dexon-solidity-d3c8847726f6c00269bca89e6ee281948e2a353f.zip |
Fixed a crash during type checking.
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index de30dcf7..669a7e4a 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -495,7 +495,10 @@ void TypeChecker::visitManually( break; } if (!parameters) + { typeError(_modifier.location(), "Referenced declaration is neither modifier nor base class."); + return; + } if (parameters->size() != arguments.size()) typeError( _modifier.location(), |