[RFC] Fix -fbounds-check on assume arrays

Andrew Pinski pinskia@physics.uc.edu
Tue Jan 3 18:24:00 GMT 2006


On Jan 3, 2006, at 1:17 PM, Andrew Pinski wrote:

> This is my first semi major patch into the Fortran front-end, but I 
> noticed
> this bug while looking through the bug reports and decided to track it.
>
> The way I fixed the problem is that if the upper bound is less than the
> lower bound, we don't need to create the conditional as that says this 
> is
> an assumed sized array.
>
> What do people think about this method or is there an easier way to 
> figure out
> if the bounds for an array is assumed?

Actually if I looked closer to the sources I would had noticed:
sym->as->type != AS_ASSUMED_SIZE

in the source.  Therefor I am withdrawing my patch.

Thanks,
Andrew Pinski




More information about the Fortran mailing list