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.