Type Pattern return variable segfault
The following program OOOPses:
use Array: all;
double[m,2] Graham (double[n,2] P)
{
return P;
}
int main () {
P = tod (reshape ([10,2], iota(20)));
StdIO::print ( Graham(P) );
return 0;
}
when trying to compile with
sac2c -V
sac2c 1.3.3-MijasCosta-1121-g254711
build-type: RELEASE
built-by: "sbs" at 2023-12-04T16:12:57
using -check c
.
If you replace the m
in the return pattern, live is good again....