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 396
    • Issues 396
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • 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
  • !443

fix error location for too few return expressions

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Mart Lubbers requested to merge martlubbers/sac2c:fix-issue-2511 into develop Oct 21, 2025
  • Overview 2
  • Commits 1
  • Pipelines 2
  • Changes 2

The (empty) return was generated without location, now it uses the location of the token ending the function }, that's the last location the return could've been and is inserted. Furthermore, this adds the function name to the error to make finding it easier. With this change, the line info is not required any more.

fixes issue #2511

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