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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44354

Reply via email to