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: 5 May 2010 14:54:21 -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 #10 from kargl at gcc dot gnu dot org 2010-05-05 14:54 -------
(In reply to comment #7)
>
> OTOH I can see where a program that has a lot of real do loops would be
> irritating. I think that the standard does not explicitly say issue four
> warnings as long as each is detected. I am using "detected" in the sense that
> each is found and we issue a broader warning message.
>
See comment #1 and #3. The standard explicitly states that a Fortran
processor must "detect and report" the use of deleted features. The
do-variable, start, end, and stride are independent entities and each
should generate a warning. If you don't want to see possibly 4 warnings,
then use -std=legacy or -w or fix the problem. I also suspect that if
one doesn't want to see these warnings, one doesn't want to see any other
warnings related to legacy features.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40165