This is the mail archive of the gcc-bugs@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]

[Bug fortran/44371] [4.6 Regression] STOP parsing rejects valid code



------- Comment #6 from sgk at troutmask dot apl dot washington dot edu  2010-06-02 04:36 -------
Subject: Re:  [4.6 Regression] STOP parsing rejects valid code

On Wed, Jun 02, 2010 at 04:17:56AM -0000, jvdelisle at gcc dot gnu dot org
wrote:
> 
> I plan to commit the following as simple and obvious. Sorry for the breakage.
> 
> Index: match.c
> ===================================================================
> --- match.c     (revision 160130)
> +++ match.c     (working copy)
> @@ -2018,10 +2018,11 @@
>         goto cleanup;
>        if (m == MATCH_NO)
>         goto syntax;
> +
> +      if (gfc_match_eos () != MATCH_YES)
> +       goto syntax;
>      }
> 
> -  if (gfc_match_eos () != MATCH_YES)
> -    goto syntax;
> 
>    if (gfc_pure (NULL))
>      {
> 

I assume that you will add appropriate testcases as well.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44371


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