This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH, FIX] PR25264 write to internal unit from the string itself gives wrong result.
Richard E Maine wrote:
I just now noticed the subject line of this thread. I have not gone back
to check the exact code in question, but the subject line suggests that
it might not be a bug. Code such as
write (string,'(a)') string
is nonstandard. My copy of f2003 is most handy, but, if anything, these
kinds of restrictions are more stringent in earlier versions. The 6th
para of 9.11 (lines 16-18 of pg 219) of f2003 says
"The value of a specifier in an input/output statement shall not
depend on any input-item, ...."
Well this may shed some light on the difficulties we are having, though it can
be done in the library side. In the process of dredging around here we find
some other bugs (pr25349)
Will keep at it. (I am home sick today and not likely to do much this day)
Jerry