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.general] Clarify initialization of arrays #6170

Closed
wants to merge 1 commit into from

Conversation

lprv
Copy link
Contributor

@lprv lprv commented Mar 11, 2023

[dcl.init.general]/13 interferes with parenthesized initialization of arrays, and [dcl.init.general]/16 does not specify the behavior of copy-initialization for array types.

* Fix outdated wording prohibiting more than one expression in a
  parenthesized initializer
* Specify that copy-non-list-initialization is ill-formed
@jensmaurer
Copy link
Member

There might be a bug in the standard hiding somewhere, but this change doesn't feel editorial to me.

@jensmaurer jensmaurer added cwg Issue must be reviewed by CWG. not-editorial Issue is not deemed editorial; the editorial issue is kept open for tracking. labels Mar 11, 2023
@lprv
Copy link
Contributor Author

lprv commented Mar 19, 2024

Now handled by CWG2708 and CWG2824.

@lprv lprv closed this Mar 19, 2024
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 this pull request may close these issues.

None yet

2 participants