emit/__emit: Allow local constants to be used as data addresses in emit_param_data()
This commit is contained in:
parent
f921451c8a
commit
d4af23b5de
@ -5922,7 +5922,7 @@ static void emit_param_data(char *name,ucell *p,int size)
|
|||||||
case tSYMBOL:
|
case tSYMBOL:
|
||||||
sym=findloc(str);
|
sym=findloc(str);
|
||||||
if (sym!=NULL) {
|
if (sym!=NULL) {
|
||||||
if (sym->vclass!=sSTATIC) {
|
if (sym->vclass!=sSTATIC && sym->ident!=iCONSTEXPR) {
|
||||||
error(17,str); /* undefined symbol */
|
error(17,str); /* undefined symbol */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user