From d28e4bffd6c3fa7aefed69c1b748a069e608b59f Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 23 Nov 2008 18:18:00 +0100 Subject: [PATCH] fix compiler crash on forward declarations --- Cython/Compiler/Symtab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2