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 418
    • Issues 418
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2505
Closed
Open
Created Sep 05, 2025 by Sven-Bodo Scholz@sbsOwner

type pattern of the form `a[n>x:shp]` do not work correctly

When I compile

int tutu ( int[n>2:shp] a)
{
    return 42;
}

int main ()
{
    a = [1,2,3,4,5];

    return tutu (a);

}

with sac2c -check p on sac2c 2.0.0-Tintigny-175-gf212f I do not get any error. all that is tested is that n >= 0 !

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