> I guess it is a compiler bug. ... So mitems() does not seem to really work > here.
I think so too. The following seems to work OK:
proc genHashResultAllZeroConst: HashLine =
for ix in result.low .. result.high:
result[ix].v = InvalidScore
