lint = A;
lint = B;
i can not think of a case where exhibit A as device code did not raise a compiler warning: ‘subscript out of range’
if it occurred before, i can not recall it; in fact, i have become accustomed to the ‘device side compiler’ complaining about such instances, to my benefit
but, at the same time, as much as the ‘device side compiler’ complains about it, the ‘host side compiler’ liberally overlooks this, from time to time it seems
i have lost count of the number of cases where such subscript errors occurred, with the host not raising warnings, leaving me to subsequently start a debugging mission 200 lines later
should the compiler raise host side subscript out of range warnings at all times?
should this be considered a bug, or not?