This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 108i. See for the official list.


2145. Parenthesized declarator in function definition

Section: 9.5.1  [dcl.fct.def.general]     Status: CD4     Submitter: Richard Smith     Date: 2015-06-19

[Adopted at the June, 2016 meeting.]

According to 9.5.1 [dcl.fct.def.general] paragraph 2,

The declarator in a function-definition shall have the form

However, in practice implementations accept a parenthesized declarator in a function definition.

Proposed resolution (April, 2016):

Change 9.5.1 [dcl.fct.def.general] paragraph 2 as follows:

The declarator in In a function-definition shall have the form,

either void declarator ; or declarator ; shall be a well-formed function declarator as described in [dcl.fct]. A function shall be defined only in namespace or class scope.