degenerate WL crashes sac2c while generating full WL partitions
|
|
Bugzilla Link |
1044 |
Created on |
Jan 19, 2013 21:11 |
Resolution |
FIXED |
Resolved on |
Apr 27, 2013 22:24 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
And the same sort of thing also crashes wlt, if the degenerate WL
appears during optimization...
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
product rev 18052 linux-gnu_x86_64
(Fri Jan 18 17:57:42 EST 2013 by sac)
Here's the failing code:
use Array:all;
int main()
{
x = [:int];
z = with {
( 0 * _shape_A_( x) <= iv < _shape_A_( x)) : 42;
} : modarray(x);
StdIO::print(z);
return(0);
}
sac2c crud.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-((
I don't have time to look into these failures.