Skip to content

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

Closed
@languagelawyer

Description

@languagelawyer
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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @zygoloid@languagelawyer

      Issue actions

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