Commit d28e4bff authored by Stefan Behnel's avatar Stefan Behnel

fix compiler crash on forward declarations

parent 20108dcd
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment