Code generator fails to generate guard code for AL unit test guardSimple.sac
|
|
Bugzilla Link |
1071 |
Created on |
Apr 27, 2013 20:42 |
Resolution |
FIXED |
Resolved on |
Oct 01, 2013 20:21 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
The following program dies in alloc.c when compiled with no options:
int main()
{
v1 = id( [ 42]);
gV, p2 = _non_neg_val_V_( v1);
gS = _sel_VxA_( [0], gV);
z = _sub_SxS_(gS , 42);
return( z);
}
int[*] id( int[*] y)
{
return(y);
}
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
developer rev 18120 linux-gnu_x86_64
(Sat Apr 27 15:38:47 EDT 2013 by sac)
Failure mode:
** 16: Introducing memory management instructions ...
**** Unshare index vectors in WL-folds ...
**** Propagating constants ...
**** AUD/SCL distinction ...
**** Making copy operations explicit ...
**** Introducing explicit allocation statements ...
memory/alloc.c:308 Assertion "als->dim != NULL" failed!
alloc requires a dim expression!
If someone can tell me how to write an alloc.c thingy for
a function that has two results, I'll fix it.