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 403
    • Issues 403
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2502
Closed
Open
Created Jul 02, 2025 by Quinten Cabo@QuintenDeveloper

Parser error when importing /

The following program

use Array: {/};
int main() {return 0;}

gives this error:

**  1: Loading SAC program ...
Internal compiler error
Assertion "!buf_empty" failed at sac2c/src/libsac2c/scanparse/lex.c:1228 -- buffer should never be empty at this point
Please file a bug at: https://gitlab.sac-home.org/sac-group/sac2c/-/issues

It is specifically if you import a function called / that this happens. Maybe it gets confused because it thinks / starts a comment?

Edited Jul 02, 2025 by Quinten Cabo
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking