This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115d. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2024-10-26
(From submission #578.)
Consider:
struct A { void f(this void); };
This ought to be an ill-formed parameter of type void.
Proposed resolution (approved by CWG 2024-08-16):
Change in 9.3.4.6 [dcl.fct] paragraph 3 as follows:
If the parameter-declaration-clause is empty, the function takes no arguments. A parameter list consisting of a single unnamed non-object parameter of non-dependent type void is equivalent to an empty parameter list. Except for this special case, a parameter shall not have type cv void.