parent array bounds checking

parent array bounds checking

What is the the difference here with array checking on?

real,dimension(10,10) :: matrix

print*,matmul(matrix(1:10,1:10),matrix(1:10,1)) ! doesn't work
print*,matmul(matrix,matrix(1:10,1)) ! works

compile command on linux: ifc -FR -static -C mycode.f90

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

How does it "not work"? I can't reproduce a problem with this.


Retired 12/31/2016

Seems I compiled the example code in a directory where I was working with other code. Somehow the already present ifc and work files caused the problem. A fresh directory made everything work. Thks for the reply.

Leave a Comment

Please sign in to add a comment. Not a member? Join today