From: Jérémie Astor Date: Thu, 7 May 2020 17:28:27 +0000 (+0200) Subject: :bug: check for parent->e->def X-Git-Tag: nightly~1636 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=031ed17da107079f786faa148224b3c6534f33d3;p=gwion.git :bug: check for parent->e->def --- diff --git a/src/parse/scan2.c b/src/parse/scan2.c index 69b3bfeb..c52c5fd9 100644 --- a/src/parse/scan2.c +++ b/src/parse/scan2.c @@ -560,7 +560,7 @@ HANDLE_SECTION_FUNC(scan2, m_bool, Env) ANN static m_bool scan2_parent(const Env env, const Class_Def cdef) { const Type parent = cdef->base.type->e->parent; // if(parent->e->def && !GET_FLAG(parent, scan2)) - if(!GET_FLAG(parent, scan2)) + if(parent->e->def && !GET_FLAG(parent, scan2)) CHECK_BB(scanx_parent(parent, scan2_cdef, env)) if(cdef->base.ext->array) CHECK_BB(scan2_exp(env, cdef->base.ext->array->exp))