Commit c09f9afe authored by Stefan Behnel's avatar Stefan Behnel

Fix compiler crash when index base does not have an 'entry'.

parent 1800cbda
...@@ -4258,7 +4258,8 @@ class MemoryViewIndexNode(BufferIndexNode): ...@@ -4258,7 +4258,8 @@ class MemoryViewIndexNode(BufferIndexNode):
if not getting: if not getting:
self.writable_needed = True self.writable_needed = True
self.base.entry.type.writable_needed = True if self.base.is_name or self.base.is_attribute:
self.base.entry.type.writable_needed = True
self.memslice_index = (not newaxes and len(indices) == self.base.type.ndim) self.memslice_index = (not newaxes and len(indices) == self.base.type.ndim)
axes = [] axes = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment