------- Comment #2 from kargl at gcc dot gnu dot org 2009-09-17 14:59 -------
This is opening a can of worms.
ln -s aap noot
touch app
program a
open(unit=10, file='noot', status='old')
write(10,'(A)') 'Deleted file'
close(10, status='delete')
end program a
Please audit all Fortran constructs that operate on a
unit= or file=. You'll also need to audit all of the intrinsic
procedures in libgfortran that operate on a unit= or file=
entity. When/if an intrinsic procedure is changed to give
consistent behavior on a symlink, please make sure that you
maintain backwards compatibility with g77.
The behavior of a symlink is not specified in any Fortran standard.
This is clearly processor dependent behavior, and should be left
alone. I'll also note that a symlink does not need to point to
a file to be useful. See FreeBSD's malloc/free implementation for
an example.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu dot org
Severity|normal |enhancement
Priority|P3 |P5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41387