Created on 2015-05-28.00:00:00 last changed 94 months ago
Proposed resolution (October, 2015):
Change 6.7.6 [basic.align] paragraph 9 as follows:
If a request for a specific extended alignment in a specific context is not supported by an implementation, the program is ill-formed.Additionally, a request for runtime allocation of dynamic storage for which the requested alignment cannot be honored shall be treated as an allocation failure.
[Adopted at the February, 2016 meeting.]
According to 7.6.2.8 [expr.new] paragraph 1,
It is implementation-defined whether over-aligned types are supported (6.7.6 [basic.align]).
However, there is no mechanism for informing an allocation function of the required alignment for over-aligned types. Nevertheless, 6.7.6 [basic.align] paragraph 9 says:
Additionally, a request for runtime allocation of dynamic storage for which the requested alignment cannot be honored shall be treated as an allocation failure.
This seems contradictory.
History | |||
---|---|---|---|
Date | User | Action | Args |
2017-02-06 00:00:00 | admin | set | status: ready -> cd4 |
2015-11-10 00:00:00 | admin | set | messages: + msg5570 |
2015-05-28 00:00:00 | admin | create |