This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, libgfortran] Fix PR27304 Data descriptors exhausted
Brooks Moses wrote:
Brooks Moses wrote:
Thus, I'm a bit baffled: is it possible for this error to occur except
in the case (from your test program) where there are no data
descriptors in the format at all? If not, perhaps an error message of
"No data descriptors found in format" would be better.
And, of course, just as I hit send, I thought of a better wording (I
think): "Format for nonempty I/O list contains no data descriptors"
- Brooks
The error occurs if there has been a reversion and no descriptors available.
There is a data descriptor available in the following example so the above
message just doesn't quite fit.
program test
implicit none
integer :: n
n = 1
write(*,"(i7,(' abcd'))") n, n
end program test
So I would like to propose the error say:
At line 5 of file fmt_exhaust.f90
Fortran runtime error: Missing data descriptor in format after reversion
I will amend the patch accordingly unless anyone has grief with this. I just
wanted to come up with something brief and to the point.
Is this OK to commit?
Regarding a test case. See my thread on "Testing for run-time errors"
Thanks all,
Jerry