Movatterモバイル変換


[0]ホーム

URL:


Issue 2130 - WG21 CWG Issues
Title
Over-aligned types in new-expressions
Status
cd4
Section
7.6.2.8 [expr.new]
Submitter
Richard Smith

Created on2015-05-28.00:00:00 last changed109 months ago

Messages

msg5570 (view)
Date: 2015-10-15.00:00:00

Proposed resolution (October, 2015):

Change 6.8.3 [basic.align] paragraph 9 as follows:

If a request for a specific extended alignment in a specificcontext is not supported by an implementation, the programis ill-formed.Additionally, a request for runtimeallocation of dynamic storage for which the requestedalignment cannot be honored shall be treated as anallocation failure.
msg5569 (view)
Date: 2016-02-15.00:00:00

[Adopted at the February, 2016 meeting.]

According to 7.6.2.8 [expr.new] paragraph 1,

It is implementation-defined whether over-aligned typesare supported (6.8.3 [basic.align]).

However, there is no mechanism for informing an allocationfunction of the required alignment for over-aligned types.Nevertheless, 6.8.3 [basic.align] paragraph 9 says:

Additionally, a request for runtime allocation of dynamicstorage for which the requested alignment cannot be honoredshall be treated as an allocation failure.

This seems contradictory.

History
DateUserActionArgs
2017-02-06 00:00:00adminsetstatus: ready -> cd4
2015-11-10 00:00:00adminsetmessages: +msg5570
2015-05-28 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp