CF _sel_VxA_( id( [0]), narray) incorrectly replaced as if id did not hide value
|
|
Bugzilla Link |
1026 |
Created on |
Oct 01, 2012 21:53 |
Resolution |
INVALID |
Resolved on |
Oct 02, 2012 15:34 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
developer rev 18236:MODIFIED linux-gnu_x86_64
(Mon Oct 1 11:57:46 EDT 2012 by sac)
This fault occurs on this code:
cat crud3.sac
/*
* Simple example of nested array use in sac2c:
* Construct (iota(3), iota(4), iota(5)...).
*
*/
int[*] id( int[*] y)
{
return(y);
}
use Array:all;
nested int[.] vec;
int main()
{
hole = enclose_vec ( [42] );
x = 3 + iota(10);
z = [ hole, hole, hole, hole, hole, hole, hole, hole, hole, hole];
StdIO::print( disclose_vec( _sel_VxA_( id( [0]), z)));
return(0);
}
CF should NOT remove the _sel_(). I'll look at it and fix it asap.