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

2024-12-19


1851. decltype(auto) in new-expressions

Section: 7.6.2.8  [expr.new]     Status: CD4     Submitter: Daveed Vandevoorde     Date: 2014-02-04

[Moved to DR at the November, 2014 meeting.]

9.2.9.7 [dcl.spec.auto] paragraph 5 says that a placeholder type (presumably including decltype(auto)) can appear in a new-expression. However, 7.6.2.8 [expr.new] mentions only auto, not decltype(auto).

Proposed resolution (February, 2014):

Change 7.6.2.8 [expr.new] paragraph 2 as follows:

If the auto type-specifier a placeholder type (9.2.9.7 [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...