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

scanner/ parser bug on dot selections

The following program:

int main ()
{
    d = [1,2,3,4][.];

    return 0;
}

after -b1 yields:

int[] main()
/*
 *  main ::  ---
 */
{
  d = sel( ., [ 1, 2, 3, 4 ]) ;
  return( 0);
}

which leads to a segfault at a later stage. Instead it should behave as this one:

int main ()
{
    d = [1,2,3,4][[.]];

    return 0;
}

which yields:

int[] main()
/*
 *  main ::  ---
 */
{
  d = sel( [ . ], [ 1, 2, 3, 4 ]) ;
  return( 0);
}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking