This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
multi-line errors in dejagnu?
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: fortran at gcc dot gnu dot org
- Date: Wed, 31 Aug 2016 14:22:03 -0700
- Subject: multi-line errors in dejagnu?
- Authentication-results: sourceware.org; auth=none
- Reply-to: kargl at uw dot edu
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