Commit 776d24bd authored by Stefan Behnel's avatar Stefan Behnel

provide better error message for user errors like (non-C++) "complex[double]"

parent 09aac374
...@@ -2819,7 +2819,7 @@ class IndexNode(ExprNode): ...@@ -2819,7 +2819,7 @@ class IndexNode(ExprNode):
index = self.index.compile_time_value(env) index = self.index.compile_time_value(env)
if index is not None: if index is not None:
return PyrexTypes.CArrayType(base_type, int(index)) return PyrexTypes.CArrayType(base_type, int(index))
# otherwise: error error(self.pos, "Array size must be a compile time constant")
return None return None
def type_dependencies(self, env): def type_dependencies(self, env):
......
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