[Bug fortran/44371] [4.6 Regression] STOP parsing rejects valid code
sgk at troutmask dot apl dot washington dot edu
gcc-bugzilla@gcc.gnu.org
Wed Jun 2 04:52:00 GMT 2010
------- 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
More information about the Gcc-bugs
mailing list