From: Jérémie Astor Date: Mon, 16 Aug 2021 13:26:25 +0000 (+0200) Subject: :bug: Fix tuple parsing X-Git-Tag: nightly~470^2~73 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=369a179379d80114e5215930a59c50aaf00fcfe2;p=gwion.git :bug: Fix tuple parsing --- diff --git a/src/parse/template.c b/src/parse/template.c index 7e8f3eeb..9419af4b 100644 --- a/src/parse/template.c +++ b/src/parse/template.c @@ -112,7 +112,8 @@ ANN Type _scan_type(const Env env, const Type t, Type_Decl *td) { if (tflag(t, tflag_ntmpl) && !td->types) return t; struct TemplateScan ts = {.t = t, .td = td}; Type_List tl = td->types; - Specialized_List sl = t->info->cdef->base.tmpl->list; + Specialized_List sl = t->info->cdef->base.tmpl + ? t->info->cdef->base.tmpl->list : NULL; while (tl && sl) { DECL_OO(const Type, t, = known_type(env, tl->td));