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

2022-07-16


74. Enumeration value in direct-new-declarator

Section: 7.6.2.8  [expr.new]     Status: TC1     Submitter: Jason Merrill     Date: 16 Nov 1998

7.6.2.8 [expr.new] paragraph 6 says:

The expression in a direct-new-declarator shall have integral type (6.8.2 [basic.fundamental] ) with a non-negative value.
I assume the intent was to also allow enumeral types, as we do in 7.6.1.2 [expr.sub] ?

Proposed Resolution (10/99): Replace "integral type" by "integral or enumeration type" in 7.6.2.8 [expr.new] paragraph 6.