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: "burnus 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 20:23:06 -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 #2 from burnus at gcc dot gnu dot org 2009-05-15 20:23 -------
(In reply to comment #1)
> I disagree with you as does the F95 standard
Sorry, I cannot find anywhere in the standard that one has to emit four
warnings. First, I think that one warning for a real loop variable is enough
(if the loop variable is integer, but e.g. step is real, I of cause expect a
warning there). Second, one can also emit a warning stating:
Warning: Deleted feature: Loop variable and start, stop, and step expression at
(1) must [all] be integer [but are all real]
where [...] is optional text to really stress that all four constrains are
violated.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40165