"scratch" file bug in g77/egcs1.1b

Toon Moene toon@moene.indiv.nluug.nl
Thu Sep 24 14:30:00 GMT 1998


>  I found that file I/O operations for I/O units opened as
>  STATUS='SCRATCH' and FORM='FORMATTED' do not work
>  correctly in g77/egcs1.1b;

[ REWIND 10 does not write an end-of-file marker on unit 10 ]

>  When compiled with g77/egcs1.0.3a, it works correctly.

>  Binary "scratch" files and formatted files not opened as
>  "scratch" do not have such a problem.

I can't find anything in the Standard that suggests REWIND N will  
write an `endfile' record to unit N; in fact, that is what the  
ENDFILE N statement is for.

I do not have an explanation for the different behaviour between  
egcs-1.0.3a and egcs-1.1b.

Hope this helps,
Toon.



More information about the Gcc-bugs mailing list