Skip to content

[cpp.replace.general] Fix wording of the ellipsis condition - #9448

Open
firmiana402 wants to merge 1 commit into
cplusplus:mainfrom
firmiana402:editorial/variadic-macro-ellipsis-condition
Open

firmiana402 wants to merge 1 commit into
cplusplus:mainfrom
firmiana402:editorial/variadic-macro-ellipsis-condition

Conversation

@firmiana402

Copy link
Copy Markdown
Contributor

The wording in p5 appears to be a typo: identifier-list, as defined in [cpp.pre], does not include an ellipsis and therefore cannot “end with an ellipsis”. p13 of this subclause explicitly shows the separation:

# define identifier lparen identifier-list , ... ) replacement-list new-line

The intended condition appears to be that the macro definition does not use an ellipsis in its parameters.

Correct this wording using the “ellipsis notation in the parameters” phrasing already used in p6.

@eisenwave

eisenwave commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Wouldn't it be a much smaller fix to say

is not followed by an ellipsis

That seems to be the intent of the wording anyway. However, even that doesn't seem to be quite correct because the identifier-list as a whole is optional, so the accepted amount of arguments is zero when it's absent. There looks to be a wording hole there.

If we do a larger fix, this should be a CWG issue. @jensmaurer ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants