Internal error at wltransform
The following sac program:
noinline int[.,.] ex (int x) {
return with{}:genarray ([0, x], 0);
}
int main () {
return _sel_VxA_ ([0], _shape_A_ (ex (42)));
}
causes internal error:
$ ./sac2c/build_d/sac2c_d -v0 -ecc -check tc bug.sac
Internal compiler error
Assertion "strides != NULL" failed at /tmp/sac2c/src/libsac2c/wltransform/wltransform.c:6983 -- No non-empty strides found.
Please file a bug at: http://bugs.sac-home.org
Seemingly it dies at wlt:wltr
, and it does not like the fact that the with-loop is statically empty.
Version:
$ ./sac2c/build_d/sac2c_d -V
sac2c 1.3.3-MijasCosta-531-g24eff-dirty
build-type: DEBUG
built-by: "tema" at 2020-11-17T22:44:18