From 116128cd56c3c7e37333f2555fd431bcb2828ff9 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 16 Jul 2019 04:45:26 +0200 Subject: [PATCH] :art: Use nspc for simple typedef --- src/parse/scan0.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.43.0