cython

changeset 1382:c8d4fc990029

fix compiler crash on forward declarations
author Stefan Behnel <scoder@users.berlios.de>
date Sun Nov 23 18:18:00 2008 +0100 (3 years ago)
parents 43d4e2b19134
children 92baafe0edf3
files Cython/Compiler/Symtab.py
line diff
1.1 --- a/Cython/Compiler/Symtab.py Tue Nov 25 12:30:05 2008 -0800 1.2 +++ b/Cython/Compiler/Symtab.py Sun Nov 23 18:18:00 2008 +0100 1.3 @@ -1020,7 +1020,7 @@ 1.4 if defining or implementing: 1.5 scope = CClassScope(name = name, outer_scope = self, 1.6 visibility = visibility) 1.7 - if base_type: 1.8 + if base_type and base_type.scope: 1.9 scope.declare_inherited_c_attributes(base_type.scope) 1.10 type.set_scope(scope) 1.11 self.type_entries.append(entry)