aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-01-11 15:25:52 +0800
committerchriseth <c@ethdev.com>2016-01-11 15:25:52 +0800
commitaa645d11927dce715ed3507e4b2ae89cf984a488 (patch)
tree7453448b061186e38373bb232698dbce1c703d6b /libsolidity/analysis
parentb158e48c1a8be7258f283be049c1db779e661998 (diff)
parentd3c8847726f6c00269bca89e6ee281948e2a353f (diff)
downloaddexon-solidity-aa645d11927dce715ed3507e4b2ae89cf984a488.tar.gz
dexon-solidity-aa645d11927dce715ed3507e4b2ae89cf984a488.tar.zst
dexon-solidity-aa645d11927dce715ed3507e4b2ae89cf984a488.zip
Merge pull request #342 from chriseth/fix_crash
Fixed a crash during type checking.
Diffstat (limited to 'libsolidity/analysis')
-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(),