Movatterモバイル変換


[0]ホーム

URL:


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

2025-12-20


2145. Parenthesized declarator in function definition

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

[Adopted at the June, 2016 meeting.]

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

Thedeclarator in afunction-definition shall havethe form

However, in practice implementations accept a parenthesizeddeclarator in a function definition.

Proposed resolution (April, 2016):

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

Thedeclarator inIn afunction-definition shall havethe form,

eithervoiddeclarator; ordeclarator; shall be a well-formed functiondeclarator as described in9.3.4.6 [dcl.fct]. A function shall be defined onlyin namespace or class scope.




[8]ページ先頭

©2009-2026 Movatter.jp