From 031ed17da107079f786faa148224b3c6534f33d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 7 May 2020 19:28:27 +0200 Subject: [PATCH] :bug: check for parent->e->def --- src/parse/scan2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.43.0