This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

multi-line errors in dejagnu?


Anyone know how to mark up an example that exposes 2 lines of
code?  I've changed an error message to something that I think
is more informative.  Consider,

module m
   interface s
      subroutine s1(i)
         integer i
      end
      subroutine s2(j)
         integer j
      end
   end interface 
end

gfortran currently gives

gfc6 -c a.f90
a.f90:8:62:

       end
         1
Error: Ambiguous interfaces 's2' and 's1' in generic interface 's' at (1)

My patch will now give

gfc7 -c a.f90
a.f90:3:19:

       subroutine s1(i)
                   1
a.f90:6:19:

       subroutine s2(j)
                   2
Error: Ambiguous interfaces in generic interface 's' for 's1' at (1)
and 's2' at (2)

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]