This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 110b. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2023-01-15


2112. new auto{x}

Section: 7.6.2.8  [expr.new]     Status: CD5     Submitter: Richard Smith     Date: 2015-04-03

[Adopted at the February, 2017 meeting as part of paper P0620R0.]

According to 7.6.2.8 [expr.new] paragraph 2,

If a placeholder type (9.2.9.6 [dcl.spec.auto]) appears in the type-specifier-seq of a new-type-id or type-id of a new-expression, the new-expression shall contain a new-initializer of the form

Now that auto v{x}; is permitted, this restriction on new-expressions should be revised to allow a single-element braced-init-list as well.