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
  • #2360
Closed
Open
Created Dec 04, 2023 by Sven-Bodo Scholz@sbsOwner

Type Pattern return variable segfault

The following program OOOPses:

use Array: all;

double[m,2] Graham (double[n,2] P)
{
    return P;
}

int main () {
    P = tod (reshape ([10,2], iota(20)));
    StdIO::print ( Graham(P) );
    return 0;
}

when trying to compile with

sac2c -V
sac2c 1.3.3-MijasCosta-1121-g254711
build-type: RELEASE
built-by: "sbs" at 2023-12-04T16:12:57

using -check c.

If you replace the m in the return pattern, live is good again....

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking