This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40165] Excessive warnings for REAL DO loops
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 May 2009 18:51:14 -0000
- Subject: [Bug fortran/40165] Excessive warnings for REAL DO loops
- References: <bug-40165-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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