From: Dag Sverre Seljebotn Date: Mon, 26 Jan 2009 17:12:56 +0000 (+0100) Subject: Fix #117 X-Git-Tag: 0.11.rc~97 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7cd4277abc171f38a579a0cf4cf4ca97fa016520;p=cython.git Fix #117 --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index ebd314b4..8b5c95b5 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -732,6 +732,8 @@ class CBufferAccessTypeNode(CBaseTypeNode): "keyword_args", "dtype_node"] dtype_node = None + + name = None def analyse(self, env, could_be_name = False): base_type = self.base_type_node.analyse(env) diff --git a/tests/errors/buffertypedef_T117.pyx b/tests/errors/buffertypedef_T117.pyx new file mode 100644 index 00000000..21878a4f --- /dev/null +++ b/tests/errors/buffertypedef_T117.pyx @@ -0,0 +1,5 @@ +ctypedef object[float] mybuffer + +_ERRORS = u""" +1:23: Syntax error in ctypedef statement +"""