From 369a179379d80114e5215930a59c50aaf00fcfe2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 16 Aug 2021 15:26:25 +0200 Subject: [PATCH] :bug: Fix tuple parsing --- src/parse/template.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- 2.43.0