summaryrefslogtreecommitdiff
path: root/Cython/Compiler
diff options
context:
space:
mode:
Diffstat (limited to 'Cython/Compiler')
-rw-r--r--Cython/Compiler/Symtab.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py
index c6a697af4..a560ead1a 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)