Title
Omitted bound in array new-expression
Status
extension
Section
8.3.4 [expr.new]
Submitter
Johannes Schaub

Created on 2012-02-12.00:00:00 last changed 78 months ago

Messages

Date: 2012-08-15.00:00:00

Additional note (August, 2012):

The consensus during the 2012-08-13 drafting review teleconference was that this issue should be referred to the Evolution Working Group and not handled by the Core Working Group.

Date: 2012-02-12.00:00:00

The syntax for noptr-new-declarator in 8.3.4 [expr.new] paragraph 1 requires an expression, even though the bound could be inferred from a braced-init-list initializer. It is not clear whether 11.6.1 [dcl.init.aggr] paragraph 4,

An array of unknown size initialized with a brace-enclosed initializer-list containing n initializer-clauses, where n shall be greater than zero, is defined as having n elements (11.3.4 [dcl.array]).

should be considered to apply to the new-type-id variant, e.g.,

  new (int[]){1, 2, 3}
History
Date User Action Args
2014-01-20 00:00:00adminsetstatus: drafting -> extension
2012-11-03 00:00:00adminsetstatus: open -> drafting
2012-09-24 00:00:00adminsetmessages: + msg3928
2012-02-12 00:00:00admincreate