This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/27304] gfortran: Warn/abort when format in write does not fit passed arguments
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Apr 2006 04:10:26 -0000
- Subject: [Bug fortran/27304] gfortran: Warn/abort when format in write does not fit passed arguments
- References: <bug-27304-1719@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jvdelisle at gcc dot gnu dot org 2006-04-26 04:10 -------
I am not sure (emphasis on not sure) I agree with this. But I can explain what
it is doing. It is correctly printing out the letter 'n' then its looking for
the first data item and finds the integer in the list, it reverts on the format
statement, performs it and then its done because there are no more data items.
At least its logical. :)
I wonder if this is a case of illegal code. Intel errors on "infinite format".
In other words it keeps reverting looking for a format specifier.
gfortran is format driven until there is no more data.
g77 exactly matches gfortran in behavior.
We should check the standard. Is it required that there is a data format
specifier?
If not, then this could be an enhancement.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27304