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 401
    • Issues 401
    • 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
  • Merge requests
  • !443

fix error location for too few return expressions

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Mart Lubbers requested to merge martlubbers/sac2c:fix-issue-2511 into develop Oct 21, 2025
  • Overview 3
  • Commits 1
  • Pipelines 3
  • 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 (closed)

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