Compiler crashes in multiple result with fold
While experimenting with fold/with expressions I encountered a compiler crash.
- using sac2c 1.3.3-MijasCosta-1047-g0c4a5
- built 2023-02-05T05:27:58.
- by user on host runner-qbwxddwq-project-39-concurrent-0.
- The compiler was called by
sac2c bonk.sac
.
* The compiler crashed in
* phase: pre (Preprocessing SAC program)
* sub phase: mgwl (Handling multi-generator with-loops)
Contents of bonk.sac
use Array: all;
int main()
{
a, b = with
{ ([0] <= iv <= [0]) : 1;
([1] <= iv <= [1]) : 1;
} : fold(+, 0);
return 0;
}