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


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