Movatterモバイル変換


[0]ホーム

URL:


Issue 1456 - WG21 CWG Issues
Title
Address constant expression designating the one-past-the-end address
Status
cd3
Section
7.7 [expr.const]
Submitter
Richard Smith

Created on2012-01-14.00:00:00 last changed145 months ago

Messages

msg4393 (view)
Date: 2013-04-15.00:00:00

[Moved to DR at the April, 2013 meeting.]

msg3880 (view)
Date: 2012-08-15.00:00:00

Proposed resolution (August, 2012):

Change 7.7 [expr.const] paragraph 3 as follows:

...Anaddress constant expression is a prvalue core constantexpression of pointer type that evaluates to the address of an objectwith static storage duration,to the address one past the lastelement of an array with static storage duration, to the addressof a function, or to a null pointer value, or a prvalue core constantexpression of typestd::nullptr_t...
msg3765 (view)
Date: 2012-01-14.00:00:00

Currently an address constant expression cannot designate the addressone past the end of an array. This seems unfortunate.

History
DateUserActionArgs
2014-03-03 00:00:00adminsetstatus: drwp -> cd3
2013-10-14 00:00:00adminsetstatus: dr -> drwp
2013-05-03 00:00:00adminsetmessages: +msg4393
2013-05-03 00:00:00adminsetstatus: ready -> dr
2012-11-03 00:00:00adminsetstatus: tentatively ready -> ready
2012-09-24 00:00:00adminsetmessages: +msg3880
2012-09-24 00:00:00adminsetstatus: drafting -> tentatively ready
2012-01-14 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp