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 417
    • Issues 417
    • 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
  • #2541
Closed
Open
Created Feb 10, 2026 by Sven-Bodo Scholz@sbsOwner

scanner parser bug for illegal type pattern

Trying:

int foo( int[+,+] a)
{
    return 0;
}

int main ()
{
   return foo([[1]]);
}

using sac2c 2.1.0-PuurGeluk-205-gbed27 RELEASE

yields:

-sbs-n142125-> sac2c bar.sac
./bar.sac:1:14: error:
  at most one `+' or `*' is allowed in a type pattern, but found 2 in int[+,+]


OOOOOOOPS, your program crashed the compiler 8-((

Please, submit the bug report online at
https://gitlab.sac-home.org/sac-group/sac2c/-/issues.

For your convenience, the compiler has pre-fabricated a bug report
in the file "./bar.sacbugreport" !

Besides some infos concerning the compiler version and its
usage it contains the specified source file.

If you want to send that bug report to us, you may simply type
  mail bugs@sac-home.org < bar.sacbugreport

If you decide to file a bug on our bug-tracker, please go to
  https://gitlab.sac-home.org/sac-group/sac2c/-/issues.

When filing a bug report, please copy/paste the initial comment section of
the bug report into the plain text comment section of the bug-tracker, and add
the whole bug report file as an attachment.

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