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 17
    • Merge requests 17
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2375
Closed
Open
Created Feb 05, 2024 by Sven-Bodo Scholz@sbsOwner

-noINL and -check c lead to internal compiler error `Assertion "(actual_cls != C_scl) && (formal_cls != C_scl)" failed`

When compiling

use Array: all;

int[n:shp] myrotate ( int[n] rv, int[n:shp] a)
{
    return { iv -> a[mod(iv - rv, shp)] | iv < shp};
}

int main ()
{
   res = myrotate( [], 42);

   return res;
}

with sac2c -noINL -check c we get

** 20: Preparing C code generation ...
Internal compiler error
Assertion "(actual_cls != C_scl) && (formal_cls != C_scl)" failed at /Volumes/Users/sbs/sac2c/src/libsac2c/precompile/typeconv_precompile.c:409 -- Conversion from or to scalar encountered!
Please file a bug at: https://gitlab.sac-home.org/sac-group/sac2c/-/issues

using

sac2c 1.3.3-MijasCosta-1154-gc82ba
build-type: RELEASE
built-by: "sbs" at 2024-02-05T10:48:28
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking