diff options
-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 75a9632e..3fb7303f 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(), |