]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Set global var as abstract
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Tue, 30 Jun 2020 21:20:47 +0000 (23:20 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Tue, 30 Jun 2020 21:20:47 +0000 (23:20 +0200)
src/parse/scan1.c

index 6ae616484803a2bd09878027bb08729f0916cda3..115f19cd99ab0415fe9b2ca57f0738773b13d379 100644 (file)
@@ -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));