multi-line errors in dejagnu?
Steve Kargl
sgk@troutmask.apl.washington.edu
Wed Aug 31 21:22:00 GMT 2016
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
More information about the Fortran
mailing list