mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
Correct handling of SEG <nonsegment>; per BR 560575
This commit is contained in:
parent
d4bc3f54ec
commit
24762d487c
2
eval.c
2
eval.c
@ -655,6 +655,8 @@ static expr *expr6(int critical)
|
||||
if (!e)
|
||||
return NULL;
|
||||
e = segment_part(e);
|
||||
if (!e)
|
||||
return NULL;
|
||||
if (is_unknown(e) && critical) {
|
||||
error(ERR_NONFATAL, "unable to determine segment base");
|
||||
return NULL;
|
||||
|
6
test/br560575.asm
Normal file
6
test/br560575.asm
Normal file
@ -0,0 +1,6 @@
|
||||
;
|
||||
; Test for bug report 560575
|
||||
;
|
||||
dw seg ~1
|
||||
dw seg "a"
|
||||
dw seg 'a'
|
Loading…
Reference in New Issue
Block a user