From: Jérémie Astor Date: Sun, 15 Dec 2019 10:05:27 +0000 (+0100) Subject: :art: Check fptr for template X-Git-Tag: nightly~1992 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=bdb25a73ac4e1cbafbf4e58ebb24e27d58e9abf0;p=gwion.git :art: Check fptr for template --- diff --git a/src/lib/func.c b/src/lib/func.c index cdeb24b2..c5ad8eda 100644 --- a/src/lib/func.c +++ b/src/lib/func.c @@ -88,6 +88,8 @@ ANN static m_bool fptr_args(const Env env, Func_Base *base[2]) { } ANN static m_bool fptr_check(const Env env, struct FptrInfo *info) { + if(!info->lhs->def->base->tmpl != !info->rhs->def->base->tmpl) + return GW_ERROR; const Type l_type = info->lhs->value_ref->from->owner_class; const Type r_type = info->rhs->value_ref->from->owner_class; if(!r_type && l_type)