Fix trac #107.
authorRobert Bradshaw <robertwb@math.washington.edu>
Tue, 4 Nov 2008 19:58:29 +0000 (11:58 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Tue, 4 Nov 2008 19:58:29 +0000 (11:58 -0800)
Cython/Compiler/Nodes.py

index ae348b56cc15a2823dd41014d5a81d898c6491e9..5c985202a2eb8ee29d2e320cd5917eb406deccc3 100644 (file)
@@ -585,7 +585,7 @@ class CArgDeclNode(Node):
             else:
                 could_be_name = False
             base_type = self.base_type.analyse(env, could_be_name = could_be_name)
-            if self.base_type.arg_name:
+            if hasattr(self.base_type, 'arg_name') and self.base_type.arg_name:
                 self.declarator.name = self.base_type.arg_name
             return self.declarator.analyse(base_type, env, nonempty = nonempty)
         else: