aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
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(),