From: Jérémie Astor Date: Tue, 30 Jun 2020 21:20:47 +0000 (+0200) Subject: :bug: Set global var as abstract X-Git-Tag: nightly~1460 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=5477e2dd3ba332d63ef45a9bda722a968aa493dd;p=gwion.git :bug: Set global var as abstract --- diff --git a/src/parse/scan1.c b/src/parse/scan1.c index 6ae61648..115f19cd 100644 --- a/src/parse/scan1.c +++ b/src/parse/scan1.c @@ -101,6 +101,8 @@ ANN static m_bool scan1_decl(const Env env, const Exp_Decl* decl) { } else if(!env->scope->depth) SET_FLAG(v, global); v->d.ptr = var->addr; + if(GET_FLAG(decl->td, global)) + SET_FLAG(v, abstract); if(!env->scope->depth) valuefrom(env, v->from); } while((list = list->next));