From: fennecdjay Date: Thu, 1 Feb 2024 12:16:19 +0000 (+0100) Subject: :fire: more on const generics and spread X-Git-Tag: nightly~103 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=e0404e8e591daa15cfa8f3d25a1e1bf80dc47ec7;p=gwion.git :fire: more on const generics and spread --- 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);