Permalink
Browse files

Better error message for lack of pointer buffers support.

  • Loading branch information...
Dag Sverre Seljebotn
Dag Sverre Seljebotn committed Dec 16, 2008
1 parent bb83b2f commit 47b868134dae05e6225264b5a19c09e8d92e21d6
Showing with 3 additions and 0 deletions.
  1. +3 −0 Cython/Compiler/Buffer.py
@@ -64,6 +64,9 @@ def handle_scope(self, node, scope):
# for now...note that pos is wrong
raise CompileError(node.pos, "Buffer vars not allowed in module scope")
for entry in bufvars:
+ if entry.type.dtype.is_ptr:
+ raise CompileError(node.pos, "Buffers with pointer types not yet supported.")
+
name = entry.name
buftype = entry.type
if buftype.ndim > self.max_ndim:

0 comments on commit 47b8681

Please sign in to comment.