Re: xlf compiler bug?



Googleer <stocksami@xxxxxxxxxxxxx> wrote:

It was a multi-dimensioned array and only one of the dimensions was
zero. I was able to assign values to the array. It appears that xldb
was confused by the zero. I would think it should have showed me the
portion of the array that had non-zero dimensions.

There is no portion that has non-zero dimensions. If any of the
dimensions is zero extent, then the whole array is zero sized, the array
size being the product of the extents. You say that you were able to
assign values to it. What are the elements that you think you managed to
assign values to? In particular, what index value did thay have in the
dimension that was zero extent? Whatever index value they had in that
dimension, it was an invalid one, as the zero extent means there are no
valid ones.

Did you have bounds checking turned on? Sounds to me like you set values
that were out of bounds, but didn't get caught.

Xldb is a really handy tool for debugging, but it isn't perfect.

While I don't know xldb in particular, I suspect that the first part of
that is true, and I'm sure that the second part is. :-)

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • Re: xlf compiler bug?
    ... I was able to assign values to the array. ... was confused by the zero. ... There is no portion that has non-zero dimensions. ... dimensions is zero extent, then the whole array is zero sized, the array ...
    (comp.lang.fortran)
  • Re: Arrays of zero length
    ... The minor strangeness is that when you allocate an array to zero size, ... saying something like that allocating an array makes it undefined ... In f77, zero-size was disallowed, ...
    (comp.lang.fortran)
  • Re: should every thing be zero indexed?
    ... Other families of languages count from 1. ... its number is zero: I always start counting at zero". ... > as a fundamental concept in both the definition of array indices and ... > for I in foo'range loop ...
    (comp.programming)
  • Re: Subset Sum problem (w/ limited scope)
    ... The "Subset Sum" problem (stated various ways depending on what you ... a subset of those integers that sums up to zero. ... Are there going to be duplicate values in your original array? ...
    (comp.lang.fortran)
  • Re: Is a line segment composed of points?
    ... interval consists of an uncountable set of points [a,c) ... imaginary objects of zero width, ... I don't think the fact that lines intersect in points is ... my earlier post, since a point has zero extent in all dimensions, it ...
    (sci.math)