http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45186
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #22 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-09-28 20:43:57 UTC --- Another case of off-by-one line numbers: http://gcc.gnu.org/ml/fortran/2010-09/msg00500.html For if (Gridded_resid_mask(4,4)) then ! Line 5 write(*,*) 'Boo' ! Line 6 The "if" is in the wrong line (6 instead of 5) - while the condition itself is in the correct line; i.e.: [ghghjh.f90 : 6] if ([ghghjh.f90 : 5] (*gridded_resid_mask)[[ghghjh.f90 : 5] (stride.2 + 1) * 4 + offset.3]) { [...] [ghghjh.f90 : 6] _gfortran_transfer_character ([ghghjh.f90 : 6] &dt_parm.7, [ghghjh.f90 : 6] &[ghghjh.f90 : 6] "Boo"[1]{lb: 1 sz: 1}, 3);