This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/44354] incorrect output at run time
- From: "jvdelisle at verizon dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2010 03:46:55 -0000
- Subject: [Bug fortran/44354] incorrect output at run time
- References: <bug-44354-19262@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from jvdelisle at verizon dot net 2010-06-01 03:46 -------
Subject: Re: incorrect output at run time
On 05/31/2010 08:07 PM, sgk at troutmask dot apl dot washington dot edu wrote:
> ------- Comment #15 from sgk at troutmask dot apl dot washington dot edu 2010-06-01 03:07 -------
> Subject: Re: incorrect output at run time
>
> On Tue, Jun 01, 2010 at 02:09:38AM -0000, jvdelisle at gcc dot gnu dot org
> wrote:
>>
>> My take on this as I was reading through this thread before I got to comment
>> #13 is that the code has to be illegal. I vote for the error. I think it would
>> be bad practice too introduce this as an extension or for some other reason.
>>
>
> Note that
>
> i = 5
> print *, (i,i=1,i)
> end
>
> is valid Fortran and gfortran currently gives the expected
> result. The distinction is the above is an io-implied-do.
> The original code contains an ac-implied-do.
>
>
Understood!
Jerry
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44354