From d3c8847726f6c00269bca89e6ee281948e2a353f Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 8 Jan 2016 15:20:20 +0100 Subject: Fixed a crash during type checking. --- libsolidity/analysis/TypeChecker.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libsolidity/analysis') 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(), -- cgit