Merge pull request #9027 from ethereum/issue-8265

Fix ICE by avoiding copyForLocation() on ArraySliceType
This commit is contained in:
chriseth
2020-05-26 17:49:11 +02:00
committed by GitHub
4 changed files with 16 additions and 4 deletions
+1 -1
View File
@@ -2555,7 +2555,7 @@ bool TypeChecker::visit(MemberAccess const& _memberAccess)
if (possibleMembers.empty())
{
if (initialMemberCount == 0)
if (initialMemberCount == 0 && !dynamic_cast<ArraySliceType const*>(exprType))
{
// Try to see if the member was removed because it is only available for storage types.
auto storageType = TypeProvider::withLocationIfReference(