This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, libgfortram] PR32456 IO error message should show Unit/Filename


: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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]