This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, libgfortram] PR32456 IO error message should show Unit/Filename
- From: Tobias Burnus <burnus at net-b dot de>
- To: Jerry DeLisle <jvdelisle at verizon dot net>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 24 Jun 2007 23:35:48 +0200
- Subject: Re: [patch, libgfortram] PR32456 IO error message should show Unit/Filename
- References: <467ED442.9040702@verizon.net>
:REVIEWMAIL:
Jerry DeLisle schrieb:
> OK for trunk?
Ok. Thanks for implementing my feature wish.
> open(99, file="foodat.mod")
> read(99,*) i
> end program
> ! { dg-output "*(unit = 99, file = 'foodat.mod')" }
> ! { dg-output "Fortran runtime error: End of file" }
> ! { dg-final { cleanup-modules "foodat.mod" } }
As suggested on IRC use:
> open(99, status='scratch')
> read(99,*) i
> end program
> ! { dg-output "*(unit = 99, file = '" }
> ! { dg-output "Fortran runtime error: End of file" }
>
the file names will be strange, but the file is deleted afterwards. If
we could check the file names it would be nicer of cause, but I don't
know how to do this.
Tobias