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/44354] incorrect output at run time



------- 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


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