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
  • Issues
  • #2511
Closed
Open
Created Oct 21, 2025 by Mart Lubbers@martlubbersContributor

Error "fewer expressions returned than return types specified" reported with the wrong location

example program:

int foo (int a)
{
	return a;
}

int main ()
{
	a = foo(42);
}

reports:

test.sac:1:1: error:
  fewer expressions returned than return types specified in line 1!

Which is wrong and hinders knowing where to look for the function. It should at least print the correct line number (6) and/or the function name.

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