Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • 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 334
    • Issues 334
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2294

Closed
Open
Created Feb 15, 2022 by Sven-Bodo Scholz@sbsOwner

code generation bug for AKD specialisation of AUD code and printf

This is a strange bug that can be reproduced when compiling the following code:

use Array: all;

int[2] scanP( int[2] a)
{
    return a;
}

int[*] scanP( int[*] a)
{
    a = {[i] -> scanP( a[i])};
    StdIO::printf (" ");
    return a;
}


int main()
{
    a = reshape( [2,2], iota(4));

    a = scanP (a);

    return 0;
}

and compiling with -noprelude.

The reshape iota is needed to enable akd-specialisation only.

This leads to a segfault due to an allocation with undefined size....

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