Commit 84c076b2 authored by Stefan Behnel's avatar Stefan Behnel

make sure we always have a set of directives on CClassScope instances

parent 2a82f641
......@@ -1310,6 +1310,7 @@ class ModuleScope(Scope):
if defining or implementing:
scope = CClassScope(name = name, outer_scope = self,
visibility = visibility)
scope.directives = self.directives.copy()
if base_type and base_type.scope:
scope.declare_inherited_c_attributes(base_type.scope)
type.set_scope(scope)
......
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