Question about out-of-bounds warning
Please consider the following program:
program main
integer :: i(2)
i (0:-1) = 1
end
Is this allowed? The assignment is a "do-nothing", but both
bounds are outside of the bounds of the array. Would a warning
be in order here?
.
Relevant Pages
- Re: question about constants
... any warning: ... It's the value that was removed from the array and assigned to ... comes as soon as the assignment is not a scalar, ... If you want to loop over a list and "consume" it by the loop you ... (perl.beginners) - Re: forrtl warning (402)
... > warning, and we all agree that the warning is not necessary, then ... the design of f90 array results is such that their ... the calling program can allocate the necessary memory or use ... assignment statement directly -- you should check by examining ... (comp.lang.fortran) - Re: array lines shifting
... What is it ment to do? ... This is your array: ... What is the goal, the goal is, to rotate array rows, the ... There is an assignment to stored value ... (alt.comp.lang.learn.c-cpp) - Re: undefined vs. undefined (was: new Array() vs [])
... or to the array performance, I dared to move it to a new thread. ... And section 10.1.3 explains the assignment of the undefined value to ... to give a Reference type. ... var arr = ... (comp.lang.javascript) - Re: array lines shifting
... What is it ment to do? ... This is your array: ... What is the goal, the goal is, to rotate array rows, the ... There is an assignment to stored value ... (alt.comp.lang.learn.c-cpp) |
|