16420, “mppf”, “Iteration over a bounded range error with uint range”, “2020-09-18T21:02:34Z”
This program halts with a runtime error:
var stride = 0:uint;
for i in 1..<stride {
writeln(i);
}
$CHPL_HOME/modules/internal/ChapelRange.chpl:1769: error: halt reached - Iteration over a bounded range may be incorrect due to overflow.
I would expect it to run the for loop 0 times.