Internal compiler error: Assertion "cviv[i] < cvshp[i]"
I tried to compile the following program:
use StdIO: all;
use Array: all;
int main()
{
weights = [[0d, 1d, 0d], [1d, 4d, 1d], [ 0d, 1d, 0d]] / 8d;
vect = [1d, 2d, 3d, 4d];
mat = [vect, vect+4d, vect+8d, vect+12d];
print(mat);
mat = {[i,j] -> sum({ iv -> weights[iv] * rotate(iv-1, mat)}[[...,i,j]])};
print(mat);
return 0;
}
the compiler exits with:
Internal compiler error
Assertion "cviv[i] < cvshp[i]" failed at /builds/gitlab/sac-group/sac2c/src/libsac2c/constants/constants_struc_ops.c:1266 -- Index error: iv[1] >= shp[1]
Please file a bug at: http://bugs.sac-home.org
this may be related to bug #2051 (closed). the workaround of using the -ecc flag works here too