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

2024-11-11


2238. Contradictory alignment requirements for allocation

Section: 6.7.5.5.2  [basic.stc.dynamic.allocation]     Status: NAD     Submitter: Jason Merrill     Date: 2016-03-03

Speaking of the value returned by an allocation function, 6.7.5.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.

Rationale (November, 2016):

The adoption of paper P0035R4 has rendered this issue moot.