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

Internal error at wltransform

The following sac program:

noinline int[.,.] ex (int x) {
  return with{}:genarray ([0, x], 0);
}

int main () {
  return _sel_VxA_ ([0], _shape_A_ (ex (42)));
}

causes internal error:

$ ./sac2c/build_d/sac2c_d -v0 -ecc -check tc  bug.sac
Internal compiler error
Assertion "strides != NULL" failed at /tmp/sac2c/src/libsac2c/wltransform/wltransform.c:6983 -- No non-empty strides found.
Please file a bug at: http://bugs.sac-home.org

Seemingly it dies at wlt:wltr, and it does not like the fact that the with-loop is statically empty. Version:

$ ./sac2c/build_d/sac2c_d -V 
sac2c 1.3.3-MijasCosta-531-g24eff-dirty
build-type: DEBUG
built-by: "tema" at 2020-11-17T22:44:18
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking