[Bug fortran/40165] Excessive warnings for REAL DO loops
kargl at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri May 15 18:51:00 GMT 2009
------- Comment #1 from kargl at gcc dot gnu dot org 2009-05-15 18:51 -------
I disagree with you as does the F95 standard (if I'm
not misreading the standard).
1.5 Conformance
(3) It contains the capability to detect and report the use within
a submitted program unit of an additional form or relationship
that is not permitted by the numbered syntax rules or their
associated constraints, including the deleted features described
in Annex B;
The F95 standard explicitly lists a constraint that the do-variable
is an INTEGER. It also explicitly lists that start, end, and step
are scalar-int-expr. By 1.5(3), gfortran must provide a means to
detect and report the (mis)uses of 'do x = 0., 10. 0.1'. That's
4 warnings.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40165
More information about the Gcc-bugs
mailing list