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
  • #2327
Closed
Open
Created Feb 26, 2023 by Sven-Bodo Scholz@sbsOwner

-check t failing when using -noinl

When compiling

noinline
int[*] reshape( int[.] shp, int[*] a)
{
    return _reshape_VxA_ (shp, a);
}

int main () {

    return reshape([], [1]);

}

with sac2c -check t -noprelude using

sac2c -V
sac2c 1.3.3-MijasCosta-1051-gfe22
build-type: RELEASE
built-by: "sbs" at 2023-02-26T08:05:58

the resulting executable returns:

*** SAC runtime error
*** Assignment with incompatible types found!
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking