diff options
author | chriseth <chris@ethereum.org> | 2017-08-21 22:22:20 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-08-21 22:57:37 +0800 |
commit | ec82706396aa1770851223d59c0efdde7407fda0 (patch) | |
tree | bff7e508a449c1efc9fd5357bb957f7e84156d4c /libsolidity | |
parent | d270879c8ff4447417c1c0cfce0b008b4df7bc9c (diff) | |
download | dexon-solidity-ec82706396aa1770851223d59c0efdde7407fda0.tar.gz dexon-solidity-ec82706396aa1770851223d59c0efdde7407fda0.tar.zst dexon-solidity-ec82706396aa1770851223d59c0efdde7407fda0.zip |
Fix crash related to ``using for`` without a library.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index e5660cde..32d078fd 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -463,7 +463,7 @@ void TypeChecker::endVisit(UsingForDirective const& _usingFor) _usingFor.libraryName().annotation().referencedDeclaration ); if (!library || !library->isLibrary()) - m_errorReporter.typeError(_usingFor.libraryName().location(), "Library name expected."); + m_errorReporter.fatalTypeError(_usingFor.libraryName().location(), "Library name expected."); } bool TypeChecker::visit(StructDefinition const& _struct) |