Skip to content

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

@languagelawyer

Description

@languagelawyer

[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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions