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] PATCH Fix PR 20058


On Mon, Feb 21, 2005 at 10:24:46AM -0800, Steve Kargl wrote:
> On Mon, Feb 21, 2005 at 10:21:39AM -0800, Steve Kargl wrote:
> > See the comment int primary.c for an explanation of what the
> > patch does.
> > 
> 
> whoops, looks like I forgot the diff.

Crap, It's just not my morning.

> Index: primary.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/fortran/primary.c,v
> retrieving revision 1.19
> diff -u -b -r1.19 primary.c
> --- primary.c	7 Feb 2005 22:16:13 -0000	1.19
> +++ primary.c	21 Feb 2005 17:18:12 -0000
> @@ -1076,7 +1081,17 @@
>  
>    m = gfc_match_char (')');
>    if (m == MATCH_NO)
> +    {
> +      /* Give the matcher for implied do-loops a chance to run.  This
> +	 yield a much saner error message for (/ (i, 4=i, 6) /).  */
> +      if (gfc_peek_char () == '=')
> +	{
> +	  m = MATCH_ERROR;
> +	  goto cleanup;
> +	}
> +      else
>      goto syntax;
> +    }
>  

The above fixes a different PR, and was submitted on 13 Feb 05
for inclusion.  http://gcc.gnu.org/ml/fortran/2005-02/msg00103.html

-- 
Steve


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