iso-mode: reset a data file gives a run time error.
Original Reporter info from Mantis: karl-michael.schindler@web.de @KaMiSchi
-
Reporter name: Karl-Michael Schindler
Original Reporter info from Mantis: karl-michael.schindler@web.de @KaMiSchi
- Reporter name: Karl-Michael Schindler
Description:
The following program gives a runtime error, when compiled in iso mode.
program fileTest(dat);
var
dat: file of integer;
begin
reset(dat);
end.
Running fileTest on MacOS results in:
FileTest iso mode> ./fileTest
Runtime error 2 at $000000010634DB22
$000000010634DB22
Steps to reproduce:
fpc -Miso fileTest.pas
./fileTest
Additional information:
No problem, when using a text-file instead of a data-file.
In case of a fix, can it please be also applied to 3.2-fixes?
Mantis conversion info:
- Mantis ID: 37415
- OS: Mac OS X
- OS Build: 10.5, 10.6
- Platform: darwin
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 46865 (#f8c1df08)