Another potential bug showing up when I was going through the warning messages:
In PrintBuffer.cc, line 70, the following code is found:
const ShapeItem ec = value.element_count();
if (ec == 0) // empty value of any dimension
const Shape sh = value.get_shape().without_axis(sh.get_rank() - 1);
if (sh.get_volume() <= 1) // empty vector
The call to sh.get_rank() refers sh itself before it's initialised. I'm not sure what the intent of this code is, so I don't want to guess how to fix it.
Regards,
Elias