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 401
    • Issues 401
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Merge requests
  • !579

Fix udt

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Thomas Koopman requested to merge thomas/sac2c:fix-udt into index-types Jan 21, 2026
  • Overview 0
  • Commits 2
  • Changes 2

Fixes Bodo's thing

module udt;
export all;

external typedef secret;

typedef secret[3] boom;

typedef int[2] pair;

secret foo (secret x)
{
   return x;
}


#if 1
secret[*] foo (secret[*] x)
{
   return [x,x];
}

pair foo (pair x)
{
    return x;
}

pair[.,.] foo (pair[.] x)
{
    return [x,x];
}
#endif

Macro implementation was missing. No idea why that starts showing up now though, probably triggered by a different bug.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix-udt