mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 19:11:03 +02:00
* when using a pointer as array, the pointer is never written, only read
git-svn-id: trunk@25964 -
This commit is contained in:
parent
9fdd64e94c
commit
6f03d04fe1
@ -1135,8 +1135,13 @@ implementation
|
|||||||
exclude(varstateflags,vsf_must_be_valid);
|
exclude(varstateflags,vsf_must_be_valid);
|
||||||
tc_pchar_2_string,
|
tc_pchar_2_string,
|
||||||
tc_pointer_2_array :
|
tc_pointer_2_array :
|
||||||
include(varstateflags,vsf_must_be_valid);
|
begin
|
||||||
end;
|
include(varstateflags,vsf_must_be_valid);
|
||||||
|
{ when a pointer is used for array access, the
|
||||||
|
pointer itself is read and never written }
|
||||||
|
newstate := vs_read;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
p:=tunarynode(p).left;
|
p:=tunarynode(p).left;
|
||||||
end;
|
end;
|
||||||
subscriptn :
|
subscriptn :
|
||||||
|
Loading…
Reference in New Issue
Block a user