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

[Bug fortran/32391] Wrong code with optimization on i686-pc-linux-gnu



------- 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


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