From: Dag Sverre Seljebotn Date: Tue, 16 Dec 2008 09:09:52 +0000 (+0100) Subject: Better error message for lack of pointer buffers support. X-Git-Tag: 0.10.3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=47b868134dae05e6225264b5a19c09e8d92e21d6;p=cython.git Better error message for lack of pointer buffers support. --- 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: