current_function_returns_value current_function_returns_null current_function_returns_abnormally
Which are declared in c-decl.c. They are basically used as a way to communicate with c-typeck.c.
All have to be initialized there to some default values.Analogously for objc it appears that the same initialization have to be done in objc-act.c. However as it is the initialization of current_function_returns_abnormaly seems to be missing. If the reinitialization isn't necessary at all it could be deleted. However if it's really missing - it will result in at least inconsistent error reporting for objc.
The attached patch basically just illustrates the places where the issue arias in the most precise way possible. It's changing in addition the data types used to a proper bool, since this is
reflecting the usage of those variables more properly.Could someone with are more thorough understanding of the interaction between the c and objc parser take a closer look at this? Thanks.
gcc-abnormal.diff
Description: Binary data