This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 116a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-12-19


18. f(TYPE) where TYPE is void should be allowed

Section: 9.3.4.6  [dcl.fct]     Status: NAD     Submitter: unknown     Date: unknown

9.3.4.6 [dcl.fct] paragraph 2 says:

If the parameter-declaration-clause is empty, the function takes no arguments. The parameter list (void) is equivalent to the empty parameter list.
Can a typedef to void be used instead of the type void in the parameter list?

Rationale: The IS is already clear that this is not allowed.