From: fennecdjay Date: Tue, 16 Jul 2019 02:45:26 +0000 (+0200) Subject: :art: Use nspc for simple typedef X-Git-Tag: nightly~2330 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=116128cd56c3c7e37333f2555fd431bcb2828ff9;p=gwion.git :art: Use nspc for simple typedef --- diff --git a/src/parse/scan0.c b/src/parse/scan0.c index ea5fbbed..a1cc966b 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -73,6 +73,8 @@ ANN static void typedef_simple(const Env env, const Stmt_Type stmt, const Type b add_type(env, nspc, t); t->e->owner = nspc; stmt->type = t; + if(base->nspc) + ADD_REF((t->nspc = base->nspc)); t->flag = stmt->ext->flag | ae_flag_checked; if(stmt->ext->array && !stmt->ext->array->exp) SET_FLAG(t, empty);