Issue 1047: Function call returning void

Authors: Jay Ghiron
Date: 2026-04-22
Submitted against: C23
Status: Review

The following text has not been properly updated to consider that void is an object type:

If the expression that denotes the called function has type pointer to function returning an object type, the function call expression has the same type as that object type, and has the value determined as specified in 6.8.7.5. Otherwise, the function call has type void.

(C23 6.5.3.3 "Function calls" paragraph 5.)

Suggested correction

Modify 6.5.3.3 paragraph 5:

If the expression that denotes the called function has type pointer to function returning an complete object type, the function call expression has the same type as that object type, and has the value determined as specified in 6.8.7.5.


Comment from Issues list maintainer on 2026-11-26:

At the November 2026 (Búzios) meeting of WG14, the suggested correction was accepted, subject to review at the April 2027 meeting.

Proposed correction

Modify 6.5.3.3 paragraph 5:

If the expression that denotes the called function has type pointer to function returning an complete object type, the function call expression has the same type as that object type, and has the value determined as specified in 6.8.7.5.