------- Comment #12 from fxcoudert at gcc dot gnu dot org 2006-10-15 08:40 ------- (In reply to comment #10) > This trimmed down example is invalid code. The "if (i>0)" > statement tries to use before it is defined.
Sorry about that: the following code is valid, and also fails to compile with the same error. implicit none integer :: n, i character(len=16),parameter :: s = "" i = 0 ; n = 9 if (s(9:16) == "90123456") then endif if (i > 0) then write (i,*) n call foo(0) endif do i = 1, n end do end -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29067