error(s.position(), "Declarator should be empty")
s.next()
cname = p_opt_cname(s)
- if s.sy == '=' and assignable:
+ if name != "operator" and s.sy == '=' and assignable:
s.next()
rhs = p_simple_expr(s)
else:
error(pos, "no matching function for call to " \
"%s::%s()" % (temp_entry.scope.name, temp_entry.scope.name))
elif not self.default_constructor:
- print 5
error(pos, "no matching function for call to %s::%s()" %
(self.default_constructor, self.default_constructor))
entry.pos,
entry.cname)
else:
- scope.declare_var(entry.name,
- entry.type.specialize(values),
- entry.pos,
- entry.cname,
- entry.visibility)
+# scope.declare_var(entry.name,
+# entry.type.specialize(values),
+# entry.pos,
+# entry.cname,
+# entry.visibility)
+ for e in entry.all_alternatives():
+ scope.declare_cfunction(e.name,
+ e.type.specialize(values),
+ e.pos,
+ e.cname)
return scope