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



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-01-31 23:07 -------
Why not create a new i for the inner loop instead of saving it off?
Or is:
  integer :: n, i
  n = 5
  n = sum((/(i,i=1,f())/))
contains
  function f()
  integer :: f
  f = i+1
  end

valid and well defined?


-- 


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]