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 395
    • Issues 395
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 26
    • Merge requests 26
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2188
Closed
Open
Created Nov 23, 2017 by Artem Shinkarov@temaOwner

SaC fails to compile a constant with-loop from demos

Here is a SaC program:

int sel (int[.] iv, int[*] a) { return _sel_VxA_ (iv, a); }

int main ()
{
  a = with { 
            ([1,1] <= idx <= [7,10] step [3,2]): 3;
      }: genarray ([9,12], 0);
  return a[[0,1]];
}

Here is the error message:

Internal compiler error
Assertion "!WLGRID_ISMODIFIED (grid1)" failed at /tmp/sac2c/src/libsac2c/wltransform/wltransform.c:5036 -- grid was modified
Please file a bug at: http://bugs.sac-home.org

The version of the compiler is:

sac2c 1.2-beta-BlackForest-611-g777dc
build-type: RELEASE
built-by: "tema" at 2017-11-21T12:36:57

Commit #777dcd63

Any ideas?

Edited Nov 23, 2017 by Artem Shinkarov
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking