-noOPT bug: Code gen dies w/inconsistant dimensions/sizes found
|
|
Bugzilla Link |
441 |
Created on |
Jun 29, 2008 20:42 |
Resolution |
FIXED |
Resolved on |
Jul 10, 2008 17:59 |
Version |
1.00beta |
OS |
Linux |
Architecture |
PC |
Extended Description
This code dies in icm2c_basic.c with the above error, when compiled with:
sac2c -noprelude -noopts todbug.sac
/* dies in code generator with inconsistent size/dim:
sac2c -noopt -noprelude todbug.sac
*/
module bugme;
export {bugger};
int[*] bugger ()
{
x = 0;
for (ib=0; _le_SxS_(ib, 3); ib = _add_SxS_(ib, 1)){
x = with { ([0] <= [ix] <= [8])
: 2;}
: genarray([9], 666);
}
return( x);
}