Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29310 Discussions

Spurious F95 standard compliance warnings?

bilklebatnasagov
Beginner
950 Views

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

0 Kudos
5 Replies
Steven_L_Intel1
Employee
950 Views

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.

0 Kudos
bilklebatnasagov
Beginner
950 Views

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.

0 Kudos
mvdsluys
Beginner
950 Views
Is there a way to switch off just this warning (in v.11.1)?
Thanks!
0 Kudos
Steven_L_Intel1
Employee
950 Views
-diag-disable 6894

should do it.
0 Kudos
mvdsluys
Beginner
950 Views
Perfect, cheers! :-)
0 Kudos
Reply