aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-09-16 00:01:13 +0800
committerchriseth <c@ethdev.com>2016-09-16 00:16:34 +0800
commit031fd568cc753c2ac21e651eaadf2381b2585191 (patch)
treeda1d28fb0a26a89eb001544c72834efcbd76a328 /libsolidity/analysis
parent6a80511ffb63a69589252e26be62d18d6281c8ae (diff)
downloaddexon-solidity-031fd568cc753c2ac21e651eaadf2381b2585191.tar.gz
dexon-solidity-031fd568cc753c2ac21e651eaadf2381b2585191.tar.zst
dexon-solidity-031fd568cc753c2ac21e651eaadf2381b2585191.zip
Fix crash for TypeName[k].
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp
index d9c54f75..ae7c13c8 100644
--- a/libsolidity/analysis/TypeChecker.cpp
+++ b/libsolidity/analysis/TypeChecker.cpp
@@ -1438,7 +1438,7 @@ bool TypeChecker::visit(IndexAccess const& _access)
length->literalValue(nullptr)
));
else
- typeError(index->location(), "Integer constant expected.");
+ fatalTypeError(index->location(), "Integer constant expected.");
}
break;
}