Created on 2023-02-06.00:00:00 last changed 12 months ago
Proposed resolution (approved by CWG 2023-06-12):
Change in 7.6.2.8 [expr.new] paragraph 1 as follows:
The new-expression attempts to create an object of the type-id(9.3.2 [dcl.name])or new-type-id (9.3.2 [dcl.name]) to which it is applied. The type of that object is the allocated type. This type shall be a complete object type (6.8.1 [basic.types.general]), but not an abstract class type (11.7.4 [class.abstract]) or array thereof (6.7.2 [intro.object]).
Change in 9.3.2 [dcl.name] paragraph 1 as follows:
To specify type conversions explicitly, and as an argument of sizeof, alignof, new, or typeid, the name of a type shall be specified. This can be done with a type-id or new-type-id (7.6.2.8 [expr.new]), which is syntactically a declaration for a variable or function of that type that omits the name of the entity.
[Accepted as a DR at the June, 2023 meeting.]
Subclause 7.6.2.8 [expr.new] paragraph 1 introduces the grammar non-terminal new-type-id, but never specifies its meaning.
History | |||
---|---|---|---|
Date | User | Action | Args |
2023-12-19 10:15:28 | admin | set | status: dr -> drwp |
2023-07-16 13:00:43 | admin | set | status: ready -> dr |
2023-06-12 16:08:03 | admin | set | messages: + msg7312 |
2023-06-12 16:08:03 | admin | set | status: open -> ready |
2023-02-06 00:00:00 | admin | create |