------- Comment #2 from burnus at gcc dot gnu dot org 2009-08-07 14:41 ------- Using 4.5.0 20090805 with GDB 6.8.50.20090803-10.1 (includes patches of Fedora/Jan Kratochvil which support F90 arrays/C99 VLA and module variables), the result is now:
Breakpoint 1, test () at fhjf.f90:3 3 a1 = 1 (gdb) n 4 PRINT*, a1(1) (gdb) 3 a1 = 1 (gdb) 4 PRINT*, a1(1) (gdb) 1 That is: Every line is poperly hit, but one has to cycle through "a1 =1; print*,a1" twice before the PRINT is actually executed. (Using GCC/gfortran 4.4 with the same gdb the result is as expected: One walk through the program, line by line.) (I heard that there were some similar weird things happening under C but I have not managed to create a test case.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660