------- Comment #14 from burnus at gcc dot gnu dot org 2007-06-26 16:25 ------- > REAL, DIMENSION(0:100) :: RBOUND > I thought that the array indices start from 1, and not from 0.
Well, dimension(5) means from 1 to 5, but e.g. dimension(-2:4:2) means the indices {-2, 0, 2, 4}. And in the program above DIMENSION(0:100) means: {0, 1, 2, 3, ..., 100} (101 indices). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32457