Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 403
    • Issues 403
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2040
Closed
Open
Created Oct 01, 2012 by Robert Bernecky@rbeDeveloper

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.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking