Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dcl.init]/14 should probably consider parenthesized initializer for arrays CWG2708 #3931

Closed
cpplearner opened this issue Apr 11, 2020 · 2 comments · Fixed by #6328
Closed
Labels
cwg Issue must be reviewed by CWG. not-editorial Issue is not deemed editorial; the editorial issue is kept open for tracking.

Comments

@cpplearner
Copy link
Contributor

[dcl.init]/14:

If the entity being initialized does not have class type, the expression-list in a parenthesized initializer shall be a single expression.

This seems to conflict with P0960R3: Allow initializing aggregates from a parenthesized list of values (merged in f29e482), which intends to allow int a[](1, 2, 3);.

@jensmaurer jensmaurer added decision-required A decision of the editorial group (or the Project Editor) is required. cwg Issue must be reviewed by CWG. and removed decision-required A decision of the editorial group (or the Project Editor) is required. labels Jan 3, 2021
@jensmaurer
Copy link
Member

This looks like normative CWG territory to me.

@frederick-vs-ja
Copy link
Contributor

This is now CWG2708 (resolved by #6328 (f4bb205)).

@jensmaurer jensmaurer added the not-editorial Issue is not deemed editorial; the editorial issue is kept open for tracking. label Aug 14, 2023
@jensmaurer jensmaurer changed the title [dcl.init]/14 should probably consider parenthesized initializer for arrays [dcl.init]/14 should probably consider parenthesized initializer for arrays CWG2708 Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cwg Issue must be reviewed by CWG. not-editorial Issue is not deemed editorial; the editorial issue is kept open for tracking.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants