UAR fails
Consider this:
noinline
int[10] foo ( int[10] g)
{
return with {}: genarray( _shape_A_(g), 0);
}
int main()
{
a = foo ([1,2,3,4,5,6,7,8,9,0]);
StdIO::print(a);
return 0;
}
Using sac2c 1.3.3-MijasCosta-1119-g05899
in debug version using -v4
we get:
** 21: Generating Code ...
**** Tag preparation ...
**** Creating intermediate code macros ...
TRAVERSE ERROR: node of type 0:undefined found where 58:N_avis was expected!
OOOOOOOPS, your program crashed the compiler 8-((
Please, submit the bug report online at
https://gitlab.sac-home.org/sac-group/sac2c/-/issues.
For your convenience, the compiler has pre-fabricated a bug report
in the file "./jordysdelight.sacbugreport" !
Besides some infos concerning the compiler version and its
usage it contains the specified source file.
If you want to send that bug report to us, you may simply type
mail bugs@sac-home.org < jordysdelight.sacbugreport
If you decide to file a bug on our bug-tracker, please go to
https://gitlab.sac-home.org/sac-group/sac2c/-/issues.
When filing a bug report, please copy/paste the initial comment section of
the bug report into the plain text comment section of the bug-tracker, and add
the whole bug report file as an attachment.
Abort