check c problem ICM undefined!
When compiling
noinline
int[*] myReshape (int[.] shp, int[*] data)
{
return _reshape_VxA_(shp, data);
}
int main() {
x = myReshape ([1], 42);
return _sel_VxA_([0], x);
}
with sac2c -check c
we get
** 22: Creating binary code ...
/Volumes/Users/sbs/Dropbox/BodoSac/ruben/a.out.c:1476:265: error: use of undeclared identifier '_ICM_IS_UNDEFINED_'
SAC_RuntimeWarningLoc ("./bug1.sac", 4, 12, "Arrays `" "SACp_emal_6042__idc_1216""' with shape %s ""And `" "SACl_data""' with shape %s ""do not adhere to prod matches prod shape constraint", SAC_PrintShape (SACp_emal_6042__idc_1216__desc), SAC_PrintShape (_ICM_IS_UNDEFINED_));
^
1 error generated.
One can also use -noprelude
alongside....
Without -check c
it compiles and runs fine.
When inlining it also runs fine.