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/33954] gfortran: incorrect output for array of dynamic bounds



------- Comment #5 from jvdelisle at gcc dot gnu dot org  2007-10-31 06:07 -------
You have the array indexes reversed:

            a(j,i)= i+j should be a(i,j) = i+j

To keep your references within the bounds of the array you defined. Use
-fbounds-check as Steve pointed out and you will get an error message.


-- 


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


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