- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
To turn the screws on our compiler warnings gauntlet, I asked all the compilers in our gauntlet to report F95 conformance items. This caused our two Intel compilers to start warning about items that are tangential to standard conformance?
Intel-10.1.015
fortcom: Warning: somecode.f90, line 1408: The field width is too small for the number of fractional digits. [5]
' of the cap is: ', f7.5 )
Intel-11.0.025
somecode.f90(1408): warning #6894: The field width is too small for the number of fractional digits. [5]
' of the cap is: ', f7.5 )
Confused,
-- Bil
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are correct that this is not a standards issue. The compiler is, I suppose, trying to be helpful in warning you that a W of 7 is not enough to fully represent a value with a D of 5, since there needs to be three spaces for the sign, leading digit and radix point.
In my opinion, this warning should not be issued under the standards switch and I'll let the developers know about it. It might be useful to note under a "usage" class of diagnostics.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I agree, the warning is certainly valid, but does not belong in the standards category.
FWIW, I think the format was set at 7.5 because the value that fills it is positive-definite.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
should do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page