This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [gfortran] give better loci for errors in end statements


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


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