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/29458] New: Spurious -Wuninitialized warning for implied do-loop counter


$ 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


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