From e0404e8e591daa15cfa8f3d25a1e1bf80dc47ec7 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 1 Feb 2024 13:16:19 +0100 Subject: [PATCH] :fire: more on const generics and spread --- src/parse/spread.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/parse/spread.c b/src/parse/spread.c index 10ec359b..6b7077e4 100644 --- a/src/parse/spread.c +++ b/src/parse/spread.c @@ -18,7 +18,6 @@ ANN m_bool spread_ast(const Env env, const Spread_Def spread, const Tmpl *tmpl) for(uint32_t i = tmpl->list->len - 1; i < tmpl->call->len; i++) { fseek(f, 0, SEEK_SET); const TmplArg targ = *mp_vector_at(tmpl->call, TmplArg, i); - assert(targ.type == tmplarg_td); if(targ.type != tmplarg_td) { gwerr_basic("invalid const expression in variadic template", NULL, "can't use expression in spread", env->name, targ.d.exp->loc, 0); Specialized *spec = mp_vector_at(tmpl->list, Specialized, tmpl->list->len - 1); -- 2.43.0