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] New: Excessive warnings for REAL DO loops


do real_var = 0.0, 10.0, 0.1
  print *, real_var
end do

is valid Fortran 77 (not in 66) but it was deleted from newer Fortran
standards. gfortran barks if it finds one, but instead of printing one error
message it prints four (loop variable, start, end and increment), which is a
bit too much. 

Expected: There is only one warning message printed.

a.f90:4.6:

  do x =0., 10., dx
     1
Warning: Deleted feature: Loop variable at (1) must be integer
a.f90:4.8:

  do x =0., 10., dx
       1
Warning: Deleted feature: Start expression in DO loop at (1) must be
integer
a.f90:4.11:

  do x =0., 10., dx
          1
Warning: Deleted feature: End expression in DO loop at (1) must be
integer
a.f90:4.16:

  do x =0., 10., dx
               1
Warning: Deleted feature: Step expression in DO loop at (1) must be
integer


-- 
           Summary: Excessive warnings for REAL DO loops
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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]