This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

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


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