Commit 91c8bc06 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Fix cypclass init not inherited from templated base

parent ba24f28a
......@@ -2589,7 +2589,7 @@ class CppClassScope(Scope):
if type.is_cfunction and self.type:
if not self.type.get_fused_types():
entry.func_cname = "%s::%s" % (self.type.empty_declaration_code(), cname)
if name != "this" and (defining or name != "<init>"):
if name != "this" and (defining or name != "<init>" or self.parent_type.is_cyp_class):
self.var_entries.append(entry)
return 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