I'm reporting what looks like compiler bug.
Is n1[3] := n2 valid though? n1 is a classical pointer rather than (a pointer to) an (instance of) a class or some maintained type where I'd expect a missing dereference to be tolerated.It also depends on mode.
MarkMLl
@MarkMLI in Mode Delphi, automatic deferencering is always on, so both forms should work (and do compile). But BOTH forms of the code crash as I expected....
Marco, it is not a compiler crash.
marcov@minerva:~$ ppcx64 test
Hint: End of reading config file /home/marcov/.fpc.cfg
Target OS: Linux for x86-64
Compiling test.pp
test.pp(10,3) Warning: Variable "n1" does not seem to be initialized
Segmentation fault