------- Comment #11 from sunjoong at gmail dot com  2007-06-18 18:47 -------
Yes, I agree that program is not beautiful
and I know the the array 'w' of 'u3b' subroutine problem;
I think the author of u3b use w(1) as pointer.

However,
the wrong generation of optimized code occurs in 'DP' subroutine.
The array of DP have fixed boundary.

(In reply to comment #10)
> There are literal hundreds of warning given by ftnchek, and there
> appears to be an array bounds problem.
> 
> troutmask:sgk[231] gfc4x -o z -O -fbounds-check TMalign.f
> troutmask:sgk[232] ./z 1aquA.pdb 1avaC.pdb | grep RMSD
> At line 2122 of file TMalign.f
> Fortran runtime error: Array reference out of bounds for array 'w', upper 
> bound
> +of dimension 1 exceeded
> 


-- 


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

Reply via email to