This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29458] Spurious -Wuninitialized warning for implied do-loop counter
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2007 23:07:36 -0000
- Subject: [Bug fortran/29458] Spurious -Wuninitialized warning for implied do-loop counter
- References: <bug-29458-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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