Title
Contradictory alignment requirements for allocation
Status
nad
Section
6.7.6.5.2 [basic.stc.dynamic.allocation]
Submitter
Jason Merrill

Created on 2016-03-03.00:00:00 last changed 83 months ago

Messages

Date: 2016-11-15.00:00:00

Rationale (November, 2016):

The adoption of paper P0035R4 has rendered this issue moot.

Date: 2022-11-20.07:54:16

Speaking of the value returned by an allocation function, 6.7.6.5.2 [basic.stc.dynamic.allocation] paragraph 2 says,

The pointer returned shall be suitably aligned so that it can be converted to a pointer of any complete object type with a fundamental alignment requirement

However, the various “Effects” specifications in 17.6.3 [new.delete] have a different formulation:

...allocate size bytes of storage suitably aligned to represent any object of that size.

These should be reconciled.

History
Date User Action Args
2018-02-27 00:00:00adminsetmessages: + msg6001
2018-02-27 00:00:00adminsetstatus: open -> nad
2016-03-03 00:00:00admincreate