This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/44371] [4.6 Regression] STOP parsing rejects valid code
- From: "sgk at troutmask dot apl dot washington dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2010 04:36:55 -0000
- Subject: [Bug fortran/44371] [4.6 Regression] STOP parsing rejects valid code
- References: <bug-44371-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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