[gfortran] patch PR 15332 colon edit descriptor ignored
François-Xavier Coudert
Francois-Xavier.Coudert@lcp.u-psud.fr
Fri Mar 25 01:23:00 GMT 2005
Hi all,
Today's one-line I/O library patch (yes, I'm really specializing in this
business) fixes PR libfortran/15332.
In fact, we simply ignored the colon edit descriptor because we didn't
associate any repeat property to it (f->repeat was -1). With the low
level of debugging available in libgfortran/io routines, it took me two
hours to figure out. So first, independant question: am I welcome to add
some more debugging code (that outputs debugging information) in the CVS
tree, protected by "#if 0 ... #endif" ?
This patch is *strapped and regtested on both mainline and 4.0. OK for
commit?
2005-03-25 Francois-Xavier Coudert <coudert@clipper.ens.fr>
* io/format.c (parse_format_list): format node for colon edit
descriptor needs a repeat counter set to 1.
2005-03-25 Francois-Xavier Coudert <coudert@clipper.ens.fr>
* gfortran.dg/pr15332.f: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr15332.diff
Type: text/x-patch
Size: 504 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050325/acca16ac/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr15332.f
Type: text/x-fortran
Size: 250 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050325/acca16ac/attachment-0001.bin>
More information about the Gcc-patches
mailing list