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]/11 and [dcl.init]/(17.4) say the same thing? #4047

Closed
languagelawyer opened this issue Jun 18, 2020 · 1 comment
Closed

[dcl.init]/11 and [dcl.init]/(17.4) say the same thing? #4047

languagelawyer opened this issue Jun 18, 2020 · 1 comment

Comments

@languagelawyer
Copy link
Contributor

[dcl.init]/11: An object whose initializer is an empty set of parentheses, i.e., (), shall be value-initialized.

[dcl.init]/17:

The semantics of initializers are as follows. The destination type is the type of the object or reference being initialized and the source type is the type of the initializer expression. If the initializer is not a single (possibly parenthesized) expression, the source type is not defined.
...
(17.4) — If the initializer is (), the object is value-initialized.

@zygoloid
Copy link
Member

Addressed by #3891.

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 a pull request may close this issue.

2 participants