[PATCH,gfortran] Fix PR 16222

Steve Kargl sgk@troutmask.apl.washington.edu
Sat Dec 4 17:15:00 GMT 2004


On Sat, Dec 04, 2004 at 05:06:42PM +0000, Paul Brook wrote:
> > > Are you deliberately allowing a mixture of integer and real types?
> >
> > Not intentionally.  It seems the parsing of iterator's to, from, and
> > step, and the use of these in assignment of the loop variable don't
> > follow the normal promotion rules of Fortran.  For example, with my
> > patch all of the following loops work
> >

(snip)

> 
> Section 8.1.4.4.1 specifies that the to from and step values should be 
> converted to the same type as the do variable, according to the normal rules 
> for assignments.
> The coversion should be performed by gfc_resolve_iterator, but currently 
> isn't.
> 

I'm working on it. :-)

-- 
Steve



More information about the Fortran mailing list