From 47b868134dae05e6225264b5a19c09e8d92e21d6 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Tue, 16 Dec 2008 10:09:52 +0100 Subject: [PATCH] Better error message for lack of pointer buffers support. --- Cython/Compiler/Buffer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cython/Compiler/Buffer.py b/Cython/Compiler/Buffer.py index ac1e5401..947469e0 100644 --- a/Cython/Compiler/Buffer.py +++ b/Cython/Compiler/Buffer.py @@ -64,6 +64,9 @@ class IntroduceBufferAuxiliaryVars(CythonTransform): # 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: -- 2.26.2