| Richard Maine 2006-05-26, 7:04 pm |
| glen herrmannsfeldt <gah@ugcs.caltech.edu> wrote:
> Richard Maine wrote:
>
>
> I was not so long ago working on a Fortran program with the ever popular
> dimension (1) assumed size arrays. (I believe it was written in 1990.)
> It seems the IBM XLF compiler, even with runtime bounds checking off,
> does compile time bounds checking. A constant subscript of 2 is not
> allowed with an assumed size array dimensioned (1).
That's exactly one of the simple cases I was talking about that are
sometimes caught. I've run into that one with old code. Might have even
been the same code, as I ran into it with a fairly widely used free
library code (perhaps fftpack, though I'm not sure of that). I was using
a different compiler though.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
|