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 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2223
Closed
Open
Created Apr 13, 2018 by Artem Shinkarov@temaOwner

Compiler assertion on incorrect number of arguments to primitive function

Here is a test file:

$ cat test.sac 
int main ()
{
  return _add_SxS_ (1);
}

Here is what I get when calling sac2c:

/tmp|=> sac2c test.sac 
Internal compiler error
Assertion "TYgetProductSize( args) == 2" failed at /tmp/sac2c/src/libsac2c/typecheck/ct_prf.c:2476 -- ari_op_SxV called with incorrect number of arguments
Please file a bug at: http://bugs.sac-home.org

This should be an error, not a compiler assertion.

Edited Apr 13, 2018 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