[patch, libfortran] PR36094 Runtime error show_locus not working correctly
Jerry DeLisle
jvdelisle@verizon.net
Thu May 1 04:58:00 GMT 2008
Hi,
This simple patch takes care of the case where filename_from_unit returns NULL.
If a filename is not yet associated with the given unit when an error occurs,
show_locus will show unit number by itself.
The patch also comments out a portion of the encoding_options array so that
"utf-8" throws a runtime error.
I will commit as obvious and simple if regression testing passes.
Jerry
2008-04-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/36094
* runtime/error.c (show_locus): Provide modified error message when
filename has not yet been associated with a unit number.
* io/open.c (encoding_opt[]): Comment out "utf-8" option and add TODO.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error.diff
Type: text/x-patch
Size: 835 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080501/ac2d2307/attachment.bin>
More information about the Fortran
mailing list