diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-07-30 22:43:50 +0800 |
---|---|---|
committer | Leonardo Alt <leo@ethereum.org> | 2018-07-31 17:17:51 +0800 |
commit | 210fee571fb786751763e731f6fb107891e13383 (patch) | |
tree | e3d8f0c078bdebd6c5932a003cf3ba822c87239e /libsolidity | |
parent | bc13365a7b3920c361ff2ae5f1a9bb7e98ad07b2 (diff) | |
download | dexon-solidity-210fee571fb786751763e731f6fb107891e13383.tar.gz dexon-solidity-210fee571fb786751763e731f6fb107891e13383.tar.zst dexon-solidity-210fee571fb786751763e731f6fb107891e13383.zip |
Fix crash when FunctionType has undeclared type as parameter
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/analysis/ReferencesResolver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/ReferencesResolver.cpp b/libsolidity/analysis/ReferencesResolver.cpp index 5815e3d2..a9a998b0 100644 --- a/libsolidity/analysis/ReferencesResolver.cpp +++ b/libsolidity/analysis/ReferencesResolver.cpp @@ -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; } |