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


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