This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/45129] I/O edit descriptors: Warn if the format field is too small for the E and F edit descriptor
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Jun 2011 08:55:34 +0000
- Subject: [Bug fortran/45129] I/O edit descriptors: Warn if the format field is too small for the E and F edit descriptor
- Auto-submitted: auto-generated
- References: <bug-45129-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45129
--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-06-15 08:55:00 UTC ---
(In reply to comment #4)
> The question is whether the warning should be only printed if the problem
> definitely occurs or only if it likely
[...]
> In this case, ifort prints with "-stand f03":
> The field width is too small for the number of fractional digits.
ifort 12.0 changed the warning to a remark (printed by default):
remark #8291: Recommended relationship between field width 'W' and the number
of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
1000 FORMAT(e10.4)
remark #8290: Recommended relationship between field width 'W' and the number
of fractional digits 'D' in this edit descriptor is 'W>=D+3'.
22 Format (F2.2)