EWL doesn't like empty array WLs
|
|
Bugzilla Link |
1043 |
Created on |
Jan 12, 2013 15:29 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
sac2c bug.sac
...
** 10: Enhancing with-loops ...
**** Introducing explicit accumulators ...
**** Adding default partitions ...
**** Applying constant folding ...
**** Applying common subexpression elimination ...
**** Generating full with-loop partitions ...
OOOOOOOPS, your program crashed the compiler 8-((
cat bug.sac
use Array:all;
int main()
{
x = [:int];
z = with {
( [0] <= iv < _shape_A_( x)) : 42;
} : modarray(x);
StdIO::print(z);
return(0);
}
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
developer rev 18051 linux-gnu_x86_64
(Fri Jan 11 18:14:26 EST 2013 by sac)
I ran into this while trying to fault-isolate a bug that
shows up in CF, apparently due to WLUR ending up in the
same situation as above.
I'll leave this for someone in Edinburgh to fix.