APEX UTBaseValue unit test dies in WLSB due to NULL N_part, N_code
|
|
Bugzilla Link |
895 |
Created on |
Dec 22, 2011 21:35 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
The following code dies as noted above:
use Array:{genarray};
int main()
{
y = [1,2,3];
z = with {
(. <= iv <= .)
: genarray([0], _sel_VxA_( iv, y));
} : genarray(_shape_A_(y), [:int]);
StdIO::print(z);
return(0);
}
The code is, basically, a compress, but with a degenerate
control argument that is all zeros. Compress can be thought of
as this "where" expression:
z = where( booleanvector, intvector, [:int]);
For example, compress( text != ' '), text) would remove
all blanks from text.
I am not sure who is to blame here. The underlying problem,
I think, is that of variable-shape cells in a WL.
What I find strange is that this code did work at one point in
time....
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
developer rev 17714:MODIFIED linux-gnu_x86_64
(Tue Dec 20 16:34:06 EST 2011 by sac)