resolving global objects (RSO) bug; non-matching number of partition returns crashes the compiler.
Coincidentally, I discovered this one:
int main()
{
n = 125;
a = with {
([0] <= [i] < [n]) {
}: i;
}:( genarray([n], 0), propagate(n));
return 0;
}
using
sac2c 1.3.3-MijasCosta-1040-g893498
build-type: DEBUG
built-by: "sbs" at 2023-01-24T20:46:16
crashes the compiler in RSO. That we use the non-unique n
as parameter to propagate
has only been done to shrink the crashing example. The cause of death is the missing second return value within the partition.