[gfortran] give better loci for errors in end statements
Paul Brook
paul@codesourcery.com
Wed Dec 8 00:16:00 GMT 2004
On Monday 06 December 2004 18:53, Tobias Schlüter wrote:
> Fixed-form code like this
> do i=1,2
> end
> gives an error message with the caret pointing to column 72, as the current
> locus is used after matching the end of statement (i.e. the newline).
>
> This patch changes this to use the locus where the end was originally
> matched.
>
> Bubblestrapped and regtested. Ok? Is there a way stuff like this can be
> tested in the testsuite?
Probably not without writing tcl to do it.
> 2004-12-06 Tobias Schlueter <tobias.shclueter@physik.uni-muenchen.de>
>
> * decl.c (gfc_match_end): Use locus of END when eos is an error.
Ok.
Paul
More information about the Gcc-patches
mailing list