From a81796ca29538714ff5a86a512fe2bd3587e159c 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 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) -- 2.26.2