diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index de30dcf79..669a7e4ab 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(),