From 5477e2dd3ba332d63ef45a9bda722a968aa493dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 30 Jun 2020 23:20:47 +0200 Subject: [PATCH] :bug: Set global var as abstract --- src/parse/scan1.c | 2 ++ 1 file changed, 2 insertions(+) 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)); -- 2.43.0