From b17757ea1765b8c332816424162b1906d06d1108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Wed, 14 Jun 2023 13:02:41 +0200 Subject: [PATCH] CompilerStack: Extend inconsistent error sanity check to cover stopAfter: parsing as well --- libsolidity/interface/StandardCompiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp index d16a2742f..4d04a4157 100644 --- a/libsolidity/interface/StandardCompiler.cpp +++ b/libsolidity/interface/StandardCompiler.cpp @@ -1327,8 +1327,8 @@ Json::Value StandardCompiler::compileSolidity(StandardCompiler::InputsAndSetting /// Inconsistent state - stop here to receive error reports from users if ( - (compilationFailed || !analysisSuccess) && - (errors.empty() && _inputsAndSettings.stopAfter >= CompilerStack::State::AnalysisSuccessful) + (compilationFailed || analysisFailed || !parsingSuccess) && + errors.empty() ) return formatFatalError(Error::Type::InternalCompilerError, "No error reported, but compilation failed.");