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
  • #2379
Closed
Open
Created Feb 09, 2024 by Robert Bernecky@rbeDeveloper

sac2c crash with -doawlf

Title says it all.

cat crud2.sac 
use Array:{iota};

noinline
int[*] myReshape (int[.] shp, int[*] data)
{
    return _reshape_VxA_(shp, data);
}

int main()
{ z = myReshape( [5], iota(5));
  StdIO::show(z);
  return(0);
}
apex@medusa:/tmp$ sac2c crud2.sac -doawlf 
Warning:
  AWLF is enabled: -ecc enabled.
Warning:
  AWLF is enabled: -extrema enabled.
Warning:
  AWLF is enabled: -maxoptcyc=20
Internal compiler error
Assertion "res == NULL || NODE_TYPE (res) == N_array" failed at /home/sac/sac2c/src/libsac2c/arrayopt/with_loop_utilities.c:289 -- Array conversion failed!
Please file a bug at: https://gitlab.sac-home.org/sac-group/sac2c/-/issues
apex@medusa:/tmp$ sac2c -V
sac2c 1.3.3-MijasCosta-1149-g4237
build-type: RELEASE
built-by: "sac" at 2024-02-09T11:28:36
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking