-noINL and -check c lead to internal compiler error `Assertion "(actual_cls != C_scl) && (formal_cls != C_scl)" failed`
When compiling
use Array: all;
int[n:shp] myrotate ( int[n] rv, int[n:shp] a)
{
return { iv -> a[mod(iv - rv, shp)] | iv < shp};
}
int main ()
{
res = myrotate( [], 42);
return res;
}
with
sac2c -noINL -check c
we get
** 20: Preparing C code generation ...
Internal compiler error
Assertion "(actual_cls != C_scl) && (formal_cls != C_scl)" failed at /Volumes/Users/sbs/sac2c/src/libsac2c/precompile/typeconv_precompile.c:409 -- Conversion from or to scalar encountered!
Please file a bug at: https://gitlab.sac-home.org/sac-group/sac2c/-/issues
using
sac2c 1.3.3-MijasCosta-1154-gc82ba
build-type: RELEASE
built-by: "sbs" at 2024-02-05T10:48:28