aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-01-08 22:20:20 +0800
committerchriseth <c@ethdev.com>2016-01-08 22:20:54 +0800
commitd3c8847726f6c00269bca89e6ee281948e2a353f (patch)
tree7453448b061186e38373bb232698dbce1c703d6b /libsolidity
parentb158e48c1a8be7258f283be049c1db779e661998 (diff)
downloaddexon-solidity-d3c8847726f6c00269bca89e6ee281948e2a353f.tar.gz
dexon-solidity-d3c8847726f6c00269bca89e6ee281948e2a353f.tar.zst
dexon-solidity-d3c8847726f6c00269bca89e6ee281948e2a353f.zip
Fixed a crash during type checking.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp3
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(),