From: Stefan Behnel Date: Sun, 23 Nov 2008 17:18:00 +0000 (+0100) Subject: fix compiler crash on forward declarations X-Git-Tag: 0.10.2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a81796ca29538714ff5a86a512fe2bd3587e159c;p=cython.git fix compiler crash on forward declarations --- diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index c6a697af..a560ead1 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -1020,7 +1020,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)