Skip to content

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

@cpplearner

Description

@cpplearner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    cwgIssue must be reviewed by CWG.not-editorialIssue is not deemed editorial; the editorial issue is kept open for tracking.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions