This is the mail archive of the
mailing list for the GCC project.
Re: [gfortran] give better loci for errors in end statements
- From: Paul Brook <paul at codesourcery dot com>
- To: fortran at gcc dot gnu dot org
- Cc: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>,patch <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 8 Dec 2004 00:16:28 +0000
- Subject: Re: [gfortran] give better loci for errors in end statements
- Organization: CodeSourcery
- References: <41B4AAAE.email@example.com>
On Monday 06 December 2004 18:53, Tobias Schlüter wrote:
> Fixed-form code like this
> do i=1,2
> 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
> 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 <firstname.lastname@example.org>
> * decl.c (gfc_match_end): Use locus of END when eos is an error.