iso mode: Assigning a character to a file variable gives runtime error 104
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 results in run time error 104, which stands for "File not open for input."
For standard output:
program fileTest1 (output);
begin
output^ := 'a';
end.
For specified text file:
program fileTest2 (outData);
var
outData: text;
begin
rewrite(outData);
outData^ := 'a';
end.
The trunk version of fpc works. I do not really know, what needs to be merged.
Steps to reproduce:
fpc -Miso fileTest1.pas
./fileTest1
fpc -Miso fileTest2.pas
./fileTest2
Mantis conversion info:
- Mantis ID: 36902
- OS: Mac OS X
- OS Build: 10.5, 10.6
- Build: fpc-3.2.0-RC1
- Platform: darwin
- Version: 3.3.1