From: Jérémie Astor Date: Mon, 6 Sep 2021 22:26:57 +0000 (+0200) Subject: :bug: Fix typedef X-Git-Tag: nightly~468 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=bfecc36c49ddadfd17ac7bb2b5b6252f1366a3dc;p=gwion.git :bug: Fix typedef --- diff --git a/src/parse/scan0.c b/src/parse/scan0.c index 6fbc5d74..d099f629 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -284,6 +284,7 @@ ANN static m_bool scan0_class_def_pre(const Env env, const Class_Def cdef) { ANN static inline void cdef_flag(const Class_Def cdef, const Type t) { if (cdef->base.tmpl) set_tflag(t, tflag_tmpl); + if (cdef->base.ext && cdef->base.ext->array) set_tflag(t, tflag_typedef); } ANN static Type get_parent_base(const Env env, Type_Decl *td) {