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


1370. identifier-list cannot contain ellipsis

Section: 15.6  [cpp.replace]     Status: CD3     Submitter: Nikolay Ivchenkov     Date: 2011-08-14

[Moved to DR at the October, 2012 meeting.]

15.6 [cpp.replace] paragraph 12 says,

If there is a ... in the identifier-list in the macro definition...

However, an identifier-list cannot contain an ellipsis according to the grammar in Clause 15 [cpp] paragraph 1.

Proposed resolution (February, 2012):

Change 15.6 [cpp.replace] paragraph 12 as follows:

If there is a ... in the identifier-list immediately preceding the ) in the function-like macro definition, then the trailing arguments, including any separating comma preprocessing tokens, are merged to form a single item: the variable arguments variable arguments. The number of arguments so combined is such that, following merger, the number of arguments is one more than the number of parameters in the macro definition (excluding the ...).