[Bug fortran/45186] [4.6 Regression] Gfortran 4.5.0 emits wrong linenumbers

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 29 10:18:00 GMT 2010


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);



More information about the Gcc-bugs mailing list