From: Stefan Behnel Date: Sun, 23 Nov 2008 17:18:00 +0000 (+0100) Subject: fix compiler crash on forward declarations X-Git-Tag: 0.11-beta~228 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d28e4bffd6c3fa7aefed69c1b748a069e608b59f;p=cython.git fix compiler crash on forward declarations --- diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index 8c7752ef..b18947fa 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -1022,7 +1022,7 @@ class ModuleScope(Scope): if defining or implementing: scope = CClassScope(name = name, outer_scope = self, visibility = visibility) - if base_type: + if base_type and base_type.scope: scope.declare_inherited_c_attributes(base_type.scope) type.set_scope(scope) self.type_entries.append(entry)