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:52:04 -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 #9 from sgk at troutmask dot apl dot washington dot edu 2010-06-02 04:52 -------
Subject: Re: [4.6 Regression] STOP parsing rejects valid code
On Wed, Jun 02, 2010 at 04:46:56AM -0000, jvdelisle at gcc dot gnu dot org
wrote:
> URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160134
> Log:
> 2010-06-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
>
> PR fortran/44371
> * gfortran.dg/error_stop_1.f08: New test.
> * gfortran.dg/error_stop_2.f08: New test.
>
> Added:
> trunk/gcc/testsuite/gfortran.dg/error_stop_1.f08
> trunk/gcc/testsuite/gfortran.dg/error_stop_2.f08
Neither testcase includes the original problem report.
In error_stop_2.f08, you have
if (c=='x') stop size(i); if (c=='X') stop
which contains and initialization expression. Please
the original test without the expression, ie.,
if (c=='x') stop ; if (c=='X') stop
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44371