[Bug fortran/29458] Spurious -Wuninitialized warning for implied do-loop counter
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Jan 31 23:07:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list