Fix bug where globals or static variables initialized using pointer arithmetic on string constants could get the wrong value.
This fixes the compca16.c test case.
This commit is contained in:
parent
0df71da4f1
commit
8e7f46dc99
|
@ -2035,7 +2035,7 @@ var
|
|||
end {else if}
|
||||
else if kind = stringConst then begin
|
||||
iPtr^.pval := offset;
|
||||
iPtr^.pPlus := operator = plusch;
|
||||
iPtr^.pPlus := true;
|
||||
iPtr^.isName := false;
|
||||
iPtr^.pStr := tree^.token.sval;
|
||||
end {else if}
|
||||
|
|
Loading…
Reference in New Issue