http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30162



--- Comment #27 from Janne Blomqvist <jb at gcc dot gnu.org> 2012-11-10 
20:21:41 UTC ---

(In reply to comment #26)

> Is this caused by

> 

> http://gcc.gnu.org/viewcvs?view=revision&revision=180701

> 

> ?

> 

> Maybe we need to remember if we have a special file after all, or just ignore

> the error on the truncate.



IMHO the correct fix is to not seek and/or truncate the file unless the Fortran

semantics require it; that way libgfortran does not need to care whether the

file is special or not. As explained in #c23, special files are special in

different ways (also different on different OS'es), and trying to enumerate all

the ways in which they are special is bound to fail. 



I think Tobias comment #c24 pinpoints the place which needs to be fixed, but

unfortunately I haven't had time to look into it.

Reply via email to