This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: bounds-check not working with allocatable
On Fri, Sep 23, 2011 at 03:23:16PM +0200, Lurkos wrote:
> Using an implied-doloop the executable shows the error.
>
> + do not show bounds error:
> | do i=1,(dim1+1)
> | write(unit=*,fmt=*) vect(i,1:dim2)
> | enddo
>
> + do show bounds error:
> | do i=1,(dim1+1)
> | write(unit=*,fmt=*) (vect(i,j), j=1,dim2)
> | enddo
>
> How are the two instructions translated differently?
>
Try the -fdump-tree-original option.
--
Steve