This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/40165] Excessive warnings for REAL DO loops



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]