emit/__emit: Allow local constants to be used as data addresses in emit_param_data()

This commit is contained in:
Daniel_Cortez 2017-11-12 19:28:59 +07:00
parent f921451c8a
commit d4af23b5de

View File

@ -5922,7 +5922,7 @@ static void emit_param_data(char *name,ucell *p,int size)
case tSYMBOL:
sym=findloc(str);
if (sym!=NULL) {
if (sym->vclass!=sSTATIC) {
if (sym->vclass!=sSTATIC && sym->ident!=iCONSTEXPR) {
error(17,str); /* undefined symbol */
continue;
}