From: Stefan Behnel Date: Fri, 10 Apr 2009 07:04:21 +0000 (+0200) Subject: fix compiler crash on mangled ctypedef names X-Git-Tag: 0.12.alpha0~322 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=02e5e8e76d7d349a0878479f9f1aafcead18f10f;p=cython.git fix compiler crash on mangled ctypedef names --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 8a5044b1..e67f6af2 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -851,7 +851,8 @@ class CStructOrUnionDefNode(StatNode): cname = self.cname, visibility='ignore') struct_entry.type.typedef_flag = False # FIXME: this might be considered a hack ;-) - struct_entry.cname = struct_entry.type.cname = '_' + self.cname + struct_entry.cname = struct_entry.type.cname = \ + '_' + self.entry.type.typedef_cname def analyse_expressions(self, env): pass