Commit 2970c311 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix trac #107.

parent cb49864e
...@@ -585,7 +585,7 @@ class CArgDeclNode(Node): ...@@ -585,7 +585,7 @@ class CArgDeclNode(Node):
else: else:
could_be_name = False could_be_name = False
base_type = self.base_type.analyse(env, could_be_name = could_be_name) 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 self.declarator.name = self.base_type.arg_name
return self.declarator.analyse(base_type, env, nonempty = nonempty) return self.declarator.analyse(base_type, env, nonempty = nonempty)
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment