$ cat a.f90
  integer :: n, i
  n = 5
  n = sum((/(i,i=1,n)/))
  end
$ gfortran -O -Wall a.f90
a.f90: In function ‘MAIN__’:
a.f90:3: warning: ‘i’ is used uninitialized in this function


-- 
           Summary: Spurious -Wuninitialized warning for implied do-loop
                    counter
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29458

Reply via email to