Fix #117
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Mon, 26 Jan 2009 17:12:56 +0000 (18:12 +0100)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Mon, 26 Jan 2009 17:12:56 +0000 (18:12 +0100)
Cython/Compiler/Nodes.py
tests/errors/buffertypedef_T117.pyx [new file with mode: 0644]

index ebd314b48399c0294a76a44cfceeb42098090470..8b5c95b54ef4c19aa0d466b97b8997f96eba33ea 100644 (file)
@@ -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 (file)
index 0000000..21878a4
--- /dev/null
@@ -0,0 +1,5 @@
+ctypedef object[float] mybuffer
+
+_ERRORS = u"""
+1:23: Syntax error in ctypedef statement
+"""