Fix crash when FunctionType has undeclared type as parameter

This commit is contained in:
Leonardo Alt
2018-07-31 11:17:51 +02:00
parent bc13365a7b
commit 210fee571f
9 changed files with 38 additions and 12 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ void ReferencesResolver::endVisit(UserDefinedTypeName const& _typeName)
Declaration const* declaration = m_resolver.pathFromCurrentScope(_typeName.namePath());
if (!declaration)
{
declarationError(_typeName.location(), "Identifier not found or not unique.");
fatalDeclarationError(_typeName.location(), "Identifier not found or not unique.");
return;
}