In the following, I haven't defined the type doesntexist
.
void myfunction(doesntexist argument)
{
}
GCC 4.7.2 says "error: variable or field ‘myfunction’ declared void
"
My question is this: What's going through the compilers mind here to refer to the function name being void and not the argument type?
[EDIT]
Before downvoting, be aware the answer to this issue is related to the order of the errors and -Wfatal-errors
stopping the more immediately relevant message from being printed. This is not simply me having a go at a slightly vague compiler message.